summaryrefslogtreecommitdiff
path: root/doc/api/modules.md
diff options
context:
space:
mode:
authorVicente Jimenez Aguilar <googuy@gmail.com>2016-12-18 17:21:29 +0100
committerJames M Snell <jasnell@gmail.com>2016-12-22 22:42:23 -0800
commitf4cda2301618f77038232eecd6d842410f6c740a (patch)
treec6e1b7464c8119fe8102c96248c50f1f0ff8c457 /doc/api/modules.md
parent791d560bb38c63226611d6e0c9d800b6e2343276 (diff)
downloadandroid-node-v8-f4cda2301618f77038232eecd6d842410f6c740a.tar.gz
android-node-v8-f4cda2301618f77038232eecd6d842410f6c740a.tar.bz2
android-node-v8-f4cda2301618f77038232eecd6d842410f6c740a.zip
doc: require() tries first core not native modules
Change a single word in documentation with a more precise one. Native is a module compiled in machine "native" code. A module normally written in a compiled language, not in JavaScript. Core modules form Node's built-in "core" functionalities. You don't need to install them. They are included in every Node installation and documented in https://nodejs.org/api/ . PR-URL: https://github.com/nodejs/node/pull/10324 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Italo A. Casas <me@italoacasas.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/modules.md')
-rw-r--r--doc/api/modules.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/api/modules.md b/doc/api/modules.md
index 8b8a5d6591..e4bd745d7e 100644
--- a/doc/api/modules.md
+++ b/doc/api/modules.md
@@ -368,11 +368,11 @@ example, then `require('./some-library')` would attempt to load:
<!--type=misc-->
-If the module identifier passed to `require()` is not a native module,
-and does not begin with `'/'`, `'../'`, or `'./'`, then Node.js starts at the
-parent directory of the current module, and adds `/node_modules`, and
-attempts to load the module from that location. Node will not append
-`node_modules` to a path already ending in `node_modules`.
+If the module identifier passed to `require()` is not a
+[core](#modules_core_modules) module, and does not begin with `'/'`, `'../'`, or
+`'./'`, then Node.js starts at the parent directory of the current module, and
+adds `/node_modules`, and attempts to load the module from that location. Node
+will not append `node_modules` to a path already ending in `node_modules`.
If it is not found there, then it moves to the parent directory, and so
on, until the root of the file system is reached.