Skip to content

Commit

Permalink
doc: add introduction sentence for CJS
Browse files Browse the repository at this point in the history
PR-URL: #42491
Reviewed-By: Geoffrey Booth <[email protected]>
Reviewed-By: Akhil Marsonya <[email protected]>
  • Loading branch information
aduh95 authored and targos committed Jul 11, 2022
1 parent a58ab2f commit 5688f8c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/api/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5688f8c

Please sign in to comment.