Skip to main content
start - repl - Node documentation
function start

Usage in Deno

import { start } from "node:repl";
start(options?: string | ReplOptions): REPLServer
Deno compatibility

This symbol is not supported.

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

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

import repl from 'node:repl';

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

Parameters

optional
options: string | ReplOptions

Return Type