summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine du Hamel <duhamelantoine1995@gmail.com>2022-04-02 20:29:22 +0200
committerJuan José Arboleda <soyjuanarbol@gmail.com>2022-04-06 12:25:50 -0500
commit94492424ba47c691050861e2f31e73bf1544b08f (patch)
tree19317cb2b727f1bc83966457751ac3afeec3c32f
parent541a1328b031188c4bc8402878a777787744940e (diff)
downloadnode-new-94492424ba47c691050861e2f31e73bf1544b08f.tar.gz
doc: add introduction sentence for CJS
PR-URL: https://github.com/nodejs/node/pull/42491 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
-rw-r--r--doc/api/modules.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/api/modules.md b/doc/api/modules.md
index de17eea503..0264c4ff55 100644
--- a/doc/api/modules.md
+++ b/doc/api/modules.md
@@ -6,7 +6,11 @@
<!--name=module-->
-In the Node.js module system, each file is treated as a separate module. For
+CommonJS modules are the original way to package JavaScript code for Node.js.
+Node.js also supports the [ECMAScript modules][] standard used by browsers
+and other JavaScript runtimes.
+
+In Node.js, each file is treated as a separate module. For
example, consider a file named `foo.js`:
```js