Skip to content

Commit 0c1e690

Browse files
aduh95juanarbol
authored andcommitted
doc: add introduction sentence for CJS
PR-URL: #42491 Reviewed-By: Geoffrey Booth <[email protected]> Reviewed-By: Akhil Marsonya <[email protected]>
1 parent 4e7b746 commit 0c1e690

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/api/modules.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
77
<!--name=module-->
88

9-
In the Node.js module system, each file is treated as a separate module. For
9+
CommonJS modules are the original way to package JavaScript code for Node.js.
10+
Node.js also supports the [ECMAScript modules][] standard used by browsers
11+
and other JavaScript runtimes.
12+
13+
In Node.js, each file is treated as a separate module. For
1014
example, consider a file named `foo.js`:
1115

1216
```js

0 commit comments

Comments
 (0)