start

external fun start(): REPLServer(source)
external fun start(options: String = definedExternally): REPLServer(source)
external fun start(options: ReplOptions = definedExternally): REPLServer(source)

The repl.start() method creates and starts a {@link REPLServer} instance.

If options is a string, then it specifies the input prompt:

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

// a Unix style prompt
repl.start('$ ');

Since

v0.1.91