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

x/dax/mod.ts>PromptOptions

Cross platform shell tools for Deno inspired by zx.
Very Popular
Go to Latest
interface PromptOptions
Re-export
import { type PromptOptions } from "https://deno.land/x/dax@0.31.0/mod.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.