ReplOptions
Properties
Stop evaluating the current piece of code when SIGINT
is received, i.e. Ctrl+C
is pressed. This cannot be used together with a custom eval
function.
The function to be used when evaluating each given line of input. Default: an async wrapper for the JavaScript eval()
function. An eval
function can error with repl.Recoverable
to indicate the input was incomplete and prompt for additional lines. See the custom evaluation functions section for more details.
If true
, specifies that the default writer will not output the return value of a command if it evaluates to undefined
.
The Readable
stream from which REPL input will be read.
The Writable
stream to which REPL output will be written.
The function to invoke to format the output of each command before writing to output
.