REPL


源代码: lib/repl.js

node:repl 模块提供了一个读-求值-打印循环(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:】

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