Skip to content

Commit

Permalink
doc: document repl on-demand module loading
Browse files Browse the repository at this point in the history
Fixes: #992
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
PR-URL: #1249
  • Loading branch information
silverwind committed Mar 24, 2015
1 parent 1832743 commit e84dd5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/api/repl.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand Down

0 comments on commit e84dd5f

Please sign in to comment.