Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 511 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 511 Bytes

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