Module

std/cli/prompt_secret.ts>promptSecret

The Deno Standard Library
Go to Latest
function promptSecret
import { promptSecret } from "https://dotland.deno.dev/std@0.223.0/cli/prompt_secret.ts";

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.

Parameters

optional
message = [UNSUPPORTED]
optional
unnamed 1: PromptSecretOptions = [UNSUPPORTED]

Returns

string | null