Node.js module
repl
Not implemented in Bun
Not implemented. Use Bun's built-in REPL (`bun run` with no arguments or `bun repl`).
Functions 1
- repl.start()
The
repl.start()method creates and starts a REPLServer instance.
Classes 2
- class repl.Recoverable
Indicates a recoverable error that a
REPLServercan use to support multi-line input. - class repl.REPLServer
Instances of
repl.REPLServerare created using the start method or directly using the JavaScriptnewkeyword.
Interfaces 4
Types 3
Variables 3
- const repl.REPL_MODE_SLOPPY
A flag passed in the REPL options.
- const repl.REPL_MODE_STRICT
A flag passed in the REPL options.
- const repl.writer
This is the default "writer" value, if none is passed in the REPL options, and it can be overridden by custom print functions.