From: Roman Reiss Date: Tue, 24 Mar 2015 21:06:27 +0000 (+0100) Subject: doc: document repl on-demand module loading X-Git-Tag: v1.6.3~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e84dd5f651e6b22cc505ab8c54a756ccc65f5c17;p=platform%2Fupstream%2Fnodejs.git doc: document repl on-demand module loading Fixes: https://github.com/iojs/io.js/issues/992 Reviewed-By: Jeremiah Senkpiel Reviewed-By: Brendan Ashworth PR-URL: https://github.com/iojs/io.js/pull/1249 --- diff --git a/doc/api/repl.markdown b/doc/api/repl.markdown index 1ca020f..3eb2398 100644 --- a/doc/api/repl.markdown +++ b/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" ]