import { Secret } from "https://deno.land/x/wmill@v1.308.1/deps.ts";
Secret prompt representation.
import { Secret } from "./mod.ts";
const password: string = await Secret.prompt("Enter your password");
Methods
protected
format(value: string): stringFormat output value.
protected
getValue(): stringGet input input.
protected
input(): stringprotected
read(): Promise<boolean>Read user input.
protected
transform(value: string): string | undefinedMap input value to output value.
protected
validate(value: string): boolean | stringValidate input value.
getDefaultSettings(options: SecretOptions): SecretSettings