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:
Roman Reiss 2015-03-24 22:06:27 +01:00
parent 1832743e18
commit e84dd5f651

View File

@ -166,6 +166,9 @@ Example of listening for `reset`:
Inside the REPL, Control+D will exit. Multi-line expressions can be input. Inside the REPL, Control+D will exit. Multi-line expressions can be input.
Tab completion is supported for both global and local variables. 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. The special variable `_` (underscore) contains the result of the last expression.
> [ "a", "b", "c" ] > [ "a", "b", "c" ]