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

Usage in Deno

import { Interface } from "node:readline";
Interface.prototype.getPrompt(): string

The rl.getPrompt() method returns the current prompt used by rl.prompt().

Return Type

string

the current prompt string