Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dax/src/console/prompt.ts>PromptOptions

Cross platform shell tools for Deno inspired by zx.
Very Popular
Go to Latest
interface PromptOptions
import { type PromptOptions } from "https://deno.land/x/dax@0.31.1/src/console/prompt.ts";

Options for showing an input where the user enters a value.

Properties

message: string

Message to display to the user.

optional
default: string

Default value.

optional
mask: InputMask | boolean

Whether typed characters should be hidden by a mask, optionally allowing a choice of mask character (* by default) and whether or not to keep the final character visible as the user types (false by default).

optional
noClear: boolean

Whether to not clear the prompt text on selection.