Skip to content

Commit eea58cd

Browse files
Trottcodebytere
authored andcommitted
doc: reword possessive form of Node.js in modules.md
Throughout the docs, we sometimes write the possessive of _Node.js_ as _Node.js'_ and other times as _Node.js's_. The former conforms with some generally accepted style guides (e.g., Associated Press Stylebook) while the latter complies with others (e.g., Chicago Manual of Style). Since there is no clear authoritative answer as to which form is correct, and since (at least to me) both are visually jarring and sometimes cause a pause to understand, I'd like to reword things to eliminate the possessive form where possible. This is one of those examples. PR-URL: #31713 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent d023819 commit eea58cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/modules.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ by checking `require.main.filename`.
8282

8383
<!-- type=misc -->
8484

85-
The semantics of Node.js's `require()` function were designed to be general
85+
The semantics of the Node.js `require()` function were designed to be general
8686
enough to support reasonable directory structures. Package manager programs
8787
such as `dpkg`, `rpm`, and `npm` will hopefully find it possible to build
8888
native packages from Node.js modules without modification.
@@ -290,7 +290,7 @@ irrespective of whether or not `./foo` and `./FOO` are the same file.
290290
Node.js has several modules compiled into the binary. These modules are
291291
described in greater detail elsewhere in this documentation.
292292

293-
The core modules are defined within Node.js's source and are located in the
293+
The core modules are defined within the Node.js source and are located in the
294294
`lib/` folder.
295295

296296
Core modules are always preferentially loaded if their identifier is
@@ -409,7 +409,7 @@ If this was in a folder at `./some-library`, then
409409
`require('./some-library')` would attempt to load
410410
`./some-library/lib/some-library.js`.
411411

412-
This is the extent of Node.js's awareness of `package.json` files.
412+
This is the extent of the awareness of `package.json` files within Node.js.
413413

414414
If there is no `package.json` file present in the directory, or if the
415415
`'main'` entry is missing or cannot be resolved, then Node.js
@@ -485,7 +485,7 @@ Additionally, Node.js will search in the following list of GLOBAL_FOLDERS:
485485
* 2: `$HOME/.node_libraries`
486486
* 3: `$PREFIX/lib/node`
487487

488-
Where `$HOME` is the user's home directory, and `$PREFIX` is Node.js's
488+
Where `$HOME` is the user's home directory, and `$PREFIX` is the Node.js
489489
configured `node_prefix`.
490490

491491
These are mostly for historic reasons.

0 commit comments

Comments
 (0)