start
The repl.start() method creates and starts a {@link REPLServer} instance.
If options is a string, then it specifies the input prompt:
import repl from 'node:repl';
// a Unix style prompt
repl.start('$ ');Content copied to clipboard
Since
v0.1.91