Skip to content

Commit 2124f93

Browse files
committed
Change wording and add backticks
1 parent 4231314 commit 2124f93

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

FAQ.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ In general, far too many developers are oblivious to the module resolution [algo
368368
index.js
369369
db-delete/
370370
index.js
371-
node_modules/ # => 3rd party dependencies
371+
node_modules/ # => external dependencies
372372
beep/
373373
boop/
374374
bop/
@@ -386,16 +386,16 @@ var h = require( './h.js' );
386386
// ...
387387
```
388388

389-
By leveraging node_modules, each local node_modules dependency
389+
By leveraging `node_module`s, each local `node_modules` dependency
390390

391391
1. is scoped to its relevant context
392-
2. does not pollute the top-level node_modules directory which contains 3rd party dependencies
393-
3. allows modules within a scope to require the dependency by name rather than by relative path in a manner similar to node_module dependencies in parent scopes (including 3rd party dependencies)
392+
2. does not pollute the top-level `node_modules` directory which contains external dependencies
393+
3. allows modules within a scope to require the dependency by name rather than by relative path in a manner similar to `node_modules` dependencies in parent scopes (including external dependencies)
394394
4. may be elevated to a higher scope without needing to update require paths
395395

396396
In short, the module resolution [algorithm][node-require] provides a simple and robust cross-platform solution for managing both external and local module dependencies.
397397

398-
__Aside__: A common objection to the directory structure above is that tools often ignore anything within a node_modules folder (e.g., linters, unit test runners, etc). That this project is able to configure tools to recognize files within node_modules folders is evidence to the contrary. If a tool cannot be configured otherwise, that is a flaw in the tool, not in the approach.
398+
__Aside__: A common objection to the directory structure above is that tools often ignore anything within a `node_modules` folder (e.g., linters, unit test runners, etc). That this project is able to configure tools to recognize files within `node_modules` folders is evidence to the contrary. If a tool cannot be configured otherwise, that is a flaw in the tool, not in the approach.
399399

400400
<!-- </faq-question> -->
401401

0 commit comments

Comments
 (0)