Browse Source

doc: clarify relation between a file and a module

PR-URL: https://github.com/nodejs/node/pull/9026
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
v7.x
marzelin 8 years ago
committed by Evan Lucas
parent
commit
3f90481e20
  1. 6
      doc/api/modules.md

6
doc/api/modules.md

@ -4,9 +4,9 @@
<!--name=module-->
Node.js has a simple module loading system. In Node.js, files and modules are
in one-to-one correspondence. As an example, `foo.js` loads the module
`circle.js` in the same directory.
Node.js has a simple module loading system. In Node.js, files and modules
are in one-to-one correspondence (each file is treated as a separate module).
As an example, `foo.js` loads the module `circle.js` in the same directory.
The contents of `foo.js`:

Loading…
Cancel
Save