Skip to main content
Module

x/cliffy/prompt/number.ts>NumberOptions

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Latest
interface NumberOptions
implements Omit<GenericSuggestionsOptions<number, string>, UnsupportedOptions>
import { type NumberOptions } from "https://deno.land/x/cliffy@v1.0.0-rc.4/prompt/number.ts";

Number prompt options.

Properties

optional
keys: NumberKeys

Keymap to assign key names to prompt actions.

optional
min: number

If set, the prompt value must be greater or equal than min.

optional
max: number

If set, the prompt value must be lower or equal than max.

optional
float: boolean

Enable floating point numbers.

optional
round: number

Round floating point numbers.