doc: document repl on-demand module loading
authorRoman Reiss <me@silverwind.io>
Tue, 24 Mar 2015 21:06:27 +0000 (22:06 +0100)
committerRoman Reiss <me@silverwind.io>
Tue, 24 Mar 2015 21:10:26 +0000 (22:10 +0100)
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

doc/api/repl.markdown

index 1ca020f..3eb2398 100644 (file)
@@ -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" ]