Skip to main content
Module

x/deno/tools/release/deps.ts>dax.PromptOptions

A modern runtime for JavaScript and TypeScript.
Latest
interface dax.PromptOptions
Re-export
import { type dax } from "https://deno.land/x/deno@v1.41.0/tools/release/deps.ts";
const { PromptOptions } = dax;

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.