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

x/cliffy/prompt/secret.ts>SecretOptions

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
interface SecretOptions
implements GenericInputPromptOptions<string, string>
import { type SecretOptions } from "https://deno.land/x/cliffy@v1.0.0-rc.1/prompt/secret.ts";

Secret prompt options.

Properties

optional
keys: SecretKeys
optional
label: string

Change prompt label. Default is Secret.

optional
hidden: boolean

If enabled, the input value is hidden, otherwise each character is replaced with a *.

optional
minLength: number

Limit minimum allowed length of the secret.

optional
maxLength: number

Limit maximum allowed length of the secret.