mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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>
This commit is contained in:
@@ -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`:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user