Interface.prototype.setPrompt - Node documentation
method Interface.prototype.setPrompt

Usage

import { Interface } from "node:readline";

The rl.setPrompt() method sets the prompt that will be written to outputwhenever rl.prompt() is called.

Parameters

prompt: string

Return Type

void