/inquirer-number-plus

better number prompt

Primary LanguageJavaScript

inquirer-number-plus

Better number promt

Installation

npm install inquirer-number-plus

Usage

inquirer.registerPrompt('number', require('inquirer-number-plus'));

inquirer.prompt({
  type: 'number',
  ...
})

options

Takes type, name, message, default,max,min,inc, properties.

You can type in numbers and use up/down or j/k to increase/decrease the value. Only numbers are allowed as input.

use gg/G key to turn the value into max/min