← All notes

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

See also

Claims

Sources

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

Permanent ID: iil:note:3p2vfzkv

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.},
}

Markdown

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.