From 9834eefc1b31770b42aa1a1a8db0aa8ca5cce849 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 loading --- 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" ]