Skip to content

Commit e84dd5f

Browse files
committed
doc: document repl on-demand module loading
Fixes: #992 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Brendan Ashworth <[email protected]> PR-URL: #1249
1 parent 1832743 commit e84dd5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/repl.markdown

+3
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ Example of listening for `reset`:
166166
Inside the REPL, Control+D will exit. Multi-line expressions can be input.
167167
Tab completion is supported for both global and local variables.
168168

169+
Core modules will be loaded on-demand into the environment. For example,
170+
accessing `fs` will `require()` the `fs` module as `global.fs`.
171+
169172
The special variable `_` (underscore) contains the result of the last expression.
170173

171174
> [ "a", "b", "c" ]

0 commit comments

Comments
 (0)