-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
repl: document auto-loading #992
Comments
That's not entirely true. The REPL auto-loads modules but if you're running a script from a file you actually have to require() these modules to use them. |
Right, i corrected my report to highlight that i was using the shell. |
If anything, a sentence could be added to the REPL docs. |
+1 on the REPL docs suggestion. |
It's more like on-demand loading, isn't it? > Object.keys(global).indexOf("fs")
-1
> fs; Object.keys(global).indexOf("fs")
21 |
Fixes: #992 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Brendan Ashworth <[email protected]> PR-URL: #1249
documented that feature in e84dd5f |
this is my first attempt to io.js . I Installed version 1.3 on my mac, osx yosemite, via macports. I looked for documentation at https://iojs.org/api/ to use
fs
module. reading at fs documentation the first statement isThe same statement is repeated on every module but, trying to use the CLI shell, i noticed several modules (probably all) are already loaded
so, if my guess is correct, the documentation should be updated to reflect the fact that
require
actually is not required for the standard module if using the CLI shell.The text was updated successfully, but these errors were encountered: