Index - Node documentation

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');

Classes

c
Recoverable

Indicates a recoverable error that a REPLServer can use to support multi-line input.

c
REPLServer

Instances of repl.REPLServer are created using the start method or directly using the JavaScript new keyword.

Functions

f
start

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

Interfaces

I
REPLCommand
No documentation available
I
ReplOptions
No documentation available

Type Aliases

T
REPLCommandAction
No documentation available
T
REPLEval
No documentation available
T
REPLWriter
No documentation available

Variables

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.