Usage in Deno
import * as mod from "node:repl";
The node:repl module provides a Read-Eval-Print-Loop (REPL) implementation
that is available both as a standalone program or includible in other
applications. It can be accessed using:
const repl = require('node:repl');
Indicates a recoverable error that a REPLServer can use to support multi-line input.
Instances of repl.REPLServer are created using the start method
or directly using the JavaScript new keyword.
The repl.start() method creates and starts a REPLServer instance.
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'.
This is the default "writer" value, if none is passed in the REPL options, and it can be overridden by custom print functions.