Skip to main content

@std/cli@0.215.0

latest
Works with
It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun
It is unknown whether this package works with Browsers
It is unknown whether this package works with Deno
It is unknown whether this package works with Node.js
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Bun
JSR Score64%
Published2 years ago (0.215.0)

Functions

f
promptSecret(
message?,
unnamed 1?: PromptSecretOptions
): string | null

Shows the given message and waits for the user's input. Returns the user's input as string. This is similar to prompt() but it print user's input as * to prevent password from being shown. Use an empty mask if you don't want to show any character.

Type Aliases

T
PromptSecretOptions = { mask?: string; clear?: boolean; }
No documentation available
  • clear: boolean
    No documentation available
  • mask: string
    No documentation available

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/cli

Import symbol

import * as mod from "@std/cli/prompt_secret";
or

Import directly with a jsr specifier

import * as mod from "jsr:@std/cli/prompt_secret";