Module

x/cliffy/mod.ts>GenericPrompt#validate

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

Validate input value.

Parameters

value: TRawValue

User input value.

Returns

True on success, false or error message on error.