the deferred/promise timeout
the prompt and stream for all I/O. Defaults to > .
the readable stream to listen to. Defaults to process.stdin.
the writable stream to write readline data to. Defaults to process.stdout.
pass true if the stream should be treated like a TTY, and have ANSI/VT100 escape codes written to it. Defaults to checking isTTY on the output stream upon instantiation.
function that will be used to eval each given line. Defaults to an async wrapper for eval(). See below for an example of a custom eval.
a boolean which specifies whether or not the writer function should output colors. If a different writer function is set then this does nothing. Defaults to the repl's terminal value.
if set to true, then the repl will use the global object, instead of running scripts in a separate context. Defaults to false.
if set to true, then the repl will not output the return value of command if it's undefined. Defaults to false.
the function to invoke for each command that gets evaluated which returns the formatting (including coloring) to display. Defaults to util.inspect.
controls whether the repl runs all commands in strict mode, default mode, or a hybrid mode ("magic" mode.) Acceptable values are:
function that will be used to eval each given line.
function that will be used to eval each given line. Defaults to an async wrapper for eval(). See below for an example of a custom eval.
if set to true, then the repl will not output the return value of command if it's undefined.
if set to true, then the repl will not output the return value of command if it's undefined. Defaults to false.
the readable stream to listen to.
the readable stream to listen to. Defaults to process.stdin.
the writable stream to write readline data to.
the writable stream to write readline data to. Defaults to process.stdout.
the prompt and stream for all I/O.
the prompt and stream for all I/O. Defaults to > .
controls whether the repl runs all commands in strict mode, default mode, or a hybrid mode ("magic" mode.) Acceptable values are:
controls whether the repl runs all commands in strict mode, default mode, or a hybrid mode ("magic" mode.) Acceptable values are:
pass true if the stream should be treated like a TTY, and have ANSI/VT100 escape codes written to it.
pass true if the stream should be treated like a TTY, and have ANSI/VT100 escape codes written to it. Defaults to checking isTTY on the output stream upon instantiation.
the deferred/promise timeout
a boolean which specifies whether or not the writer function should output colors.
a boolean which specifies whether or not the writer function should output colors. If a different writer function is set then this does nothing. Defaults to the repl's terminal value.
if set to true, then the repl will use the global object, instead of running scripts in a separate context.
if set to true, then the repl will use the global object, instead of running scripts in a separate context. Defaults to false.
the function to invoke for each command that gets evaluated which returns the formatting (including coloring) to display.
the function to invoke for each command that gets evaluated which returns the formatting (including coloring) to display. Defaults to util.inspect.
OTaaTRepl Options