Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method Interface.prototype.getPrompt
Re-export
import { Interface } from "https://deno.land/std@0.153.0/node/readline.ts";

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

Returns

string

the current prompt string