Skip to main content
Interface.prototype.setPrompt - readline - Node documentation
method Interface.prototype.setPrompt

Usage in Deno

import { Interface } from "node:readline";
Interface.prototype.setPrompt(prompt: string): void

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

Parameters

prompt: string

Return Type

void