Skip to content

Commit

Permalink
doc: adjust wording to eliminate awkward typography
Browse files Browse the repository at this point in the history
PR-URL: #45398
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Jacob Smith <jacob@frende.me>
  • Loading branch information
kovsu authored and danielleadams committed Jan 4, 2023
1 parent 43e3eaa commit fa8c928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ By default, Node.js will treat the following as CommonJS modules:
* Files with an extension that is not `.mjs`, `.cjs`, `.json`, `.node`, or `.js`
(when the nearest parent `package.json` file contains a top-level field
[`"type"`][] with a value of `"module"`, those files will be recognized as
CommonJS modules only if they are being `require`d, not when used as the
command-line entry point of the program).
CommonJS modules only if they are being included via `require()`, not when
used as the command-line entry point of the program).

See [Determining module system][] for more details.

Expand Down

0 comments on commit fa8c928

Please sign in to comment.