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

x/cliffy/prompt/number.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://deno.land/x/cliffy@v0.14.2/prompt/number.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>