Module

x/cliffy/prompt/mod.ts>Select#validate

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

Validate input value.

Parameters

value: string

User input value.

Returns

boolean | string

True on success, false or error message on error.