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

x/cliffy/prompt/secret.ts>Secret#validate

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
method Secret.prototype.validate
import { Secret } from "https://deno.land/x/cliffy@v0.18.1/prompt/secret.ts";

Validate input value.

Parameters

value: string

User input value.

Returns

boolean | string

True on success, false or error message on error.