start - Node documentation
function start

Usage

import { start } from "node:repl";

The repl.start() method creates and starts a REPLServer instance.

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

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

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

Parameters

optional
options: string | ReplOptions

Return Type