Interface.prototype.getPrompt - Node documentation
method Interface.prototype.getPrompt

Usage

import { Interface } from "node:readline";

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

Return Type

string

the current prompt string