nodeReplMod
Type members
Classlikes
Provides a customizable Read-Eval-Print-Loop (REPL).
Provides a customizable Read-Eval-Print-Loop (REPL).
Instances of repl.REPLServer
will accept individual lines of user input, evaluate those
according to a user-defined evaluation function, then output the result. Input and output
may be from stdin
and stdout
, respectively, or may be connected to any Node.js stream
.
Instances of repl.REPLServer
support automatic completion of inputs, simplistic Emacs-style
line editing, multi-line inputs, ANSI-styled output, saving and restoring current REPL session
state, error recovery, and customizable evaluation functions.
Instances of repl.REPLServer
are created using the repl.start()
method and should not
be created directly using the JavaScript new
keyword.
- See also
Value members
Concrete methods
Concrete fields
A flag passed in the REPL options. Evaluates expressions in sloppy mode.
A flag passed in the REPL options. Evaluates expressions in sloppy mode.
A flag passed in the REPL options. Evaluates expressions in strict mode.
This is equivalent to prefacing every repl statement with 'use strict'
.
A flag passed in the REPL options. Evaluates expressions in strict mode.
This is equivalent to prefacing every repl statement with 'use strict'
.