mirror of https://github.com/nodejs/node.git
doc: document repl on-demand module loading
Fixes: https://github.com/iojs/io.js/issues/992 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com> PR-URL: https://github.com/iojs/io.js/pull/1249
This commit is contained in:
parent
1832743e18
commit
e84dd5f651
|
@ -166,6 +166,9 @@ Example of listening for `reset`:
|
|||
Inside the REPL, Control+D will exit. Multi-line expressions can be input.
|
||||
Tab completion is supported for both global and local variables.
|
||||
|
||||
Core modules will be loaded on-demand into the environment. For example,
|
||||
accessing `fs` will `require()` the `fs` module as `global.fs`.
|
||||
|
||||
The special variable `_` (underscore) contains the result of the last expression.
|
||||
|
||||
> [ "a", "b", "c" ]
|
||||
|
|
Loading…
Reference in New Issue