Module

x/cliffy/prompt/mod.ts>Number

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
class Number
extends GenericInput<number, NumberSettings>
import { Number } from "https://dotland.deno.dev/x/cliffy@v0.15.0/prompt/mod.ts";

Methods

protected
addChar(char: string): void
protected
format(value: number): string
protected
handleEvent(event: KeyEvent): Promise<boolean>
protected
manipulateIndex(decrease?: boolean)
protected
transform(value: string): number | undefined
protected
validate(value: string): boolean | string

Static Methods

prompt(options: string | NumberOptions): Promise<number>