From e84dd5f651e6b22cc505ab8c54a756ccc65f5c17 Mon Sep 17 00:00:00 2001 From: Roman Reiss Date: Tue, 24 Mar 2015 22:06:27 +0100 Subject: [PATCH] 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 --- doc/api/repl.markdown | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/api/repl.markdown b/doc/api/repl.markdown index 1ca020f0351415..3eb2398a5bbbec 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" ]