Browse Source

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
v1.8.0-commit
Roman Reiss 10 years ago
parent
commit
e84dd5f651
  1. 3
      doc/api/repl.markdown

3
doc/api/repl.markdown

@ -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…
Cancel
Save