Node.js v18.12.1 documentation


Table of contents

REPL#

Stability: 2 - Stable

Source Code: lib/repl.js

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. node:repl模块提供了一个Read-Eval Print Loop(repl)实现,既可以作为独立程序使用,也可以包含在其他应用程序中。It can be accessed using:可通过以下方式访问:

const repl = require('node:repl');