The repl module provides a Read-Eval-Print-Loop (REPL) implementation that is available both as a standalone program or includible in other applications.

See also:

Static variables

staticfinalread onlyREPL_MODE_SLOPPY:Symbol

Evaluates expressions in sloppy mode.

See also:

staticfinalread onlyREPL_MODE_STRICT:Symbol

Evaluates expressions in strict mode. This is equivalent to prefacing every repl statement with 'use strict'.

See also:

Static methods

staticstart(options:ReplOptions):REPLServer

staticstart(prompt:String):REPLServer

The repl.start() method creates and starts a repl.REPLServer instance.

See also: