Usage in Deno
import * as mod from "node:repl";
Deno compatibility
All symbols are not supported.
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:
import repl from 'node:repl';
c
c
REPLServer
No documentation available
f
start
No documentation available
I
T
REPLCommandAction
No documentation available
T
REPLEval
No documentation available
T
REPLWriter
No documentation available
v
REPL_MODE_SLOPPY
A flag passed in the REPL options. Evaluates expressions in sloppy mode.
v
REPL_MODE_STRICT
A flag passed in the REPL options. Evaluates expressions in strict mode.
This is equivalent to prefacing every repl statement with 'use strict'
.
v
writer
This is the default "writer" value, if none is passed in the REPL options, and it can be overridden by custom print functions.