Node.js REPL: an interactive Read-Eval-Print loop
Answer: The repl module provides a REPL implementation, available as a standalone program and as a module. Call repl.start to open a prompt.
Examples
import repl from 'node:repl';
repl.start('> ');
Notes
See the module docs for the full option list on start.
Reference list
Themodule provides a Read-Eval-Print-Loop implementation.repl.startopens a prompt.
See also
Claims
- id: C1 claim: The module provides a Read-Eval-Print-Loop implementation. source: S2 evidence: "provides a Read-Eval-Print-Loop (REPL) implementation that is avai"
- id: C2 claim: repl.start opens a prompt. source: S2 evidence: "repl.start('> ')"
- id: C3 claim: The page documents the Node.js REPL. source: S1 evidence: "REPL"
Sources
- [S1] REPL. Node.js docs. https://nodejs.org/api/repl.html . License: MIT. Accessed 2026-11-18.
- [S2] repl.md. Node.js. https://raw.githubusercontent.com/nodejs/node/main/doc/api/repl.md . License: MIT. Accessed 2026-11-18.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Node.js docs, REPL; Node.js, repl.md. MIT (https://raw.githubusercontent.com/nodejs/node/main/LICENSE). Copyright Node.js contributors. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Node.js docs, REPL; Node.js, repl.md. MIT (https://raw.githubusercontent.com/nodejs/node/main/LICENSE). Copyright Node.js contributors.
Cite this
iinventedlight. 2026. "Node.js REPL: an interactive Read-Eval-Print loop." iinventedlight Library, iil:note:3p2vfzkv, version of 2026-11-18. https://iinventedlight.com/library/notes/node-repl/. License: CC-BY-4.0.
@misc{iil_note_3p2vfzkv,
author = {{iinventedlight}},
title = {{Node.js REPL: an interactive Read-Eval-Print loop}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-18},
url = {https://iinventedlight.com/library/notes/node-repl/},
note = {Permanent ID iil:note:3p2vfzkv. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/node-repl.md.