0.2.1 • Published 5 years ago
number-prompt v0.2.1
number-prompt 💯
Deprecated. Use the number prompt from enquirer
.
A CLI prompt to pick a number.
number-prompt uses cli-styles and prompt-skeleton to have a look & feel consistent with other prompts.
Installing
npm install number-prompt
Usage
const numberPrompt = require('number-prompt')
numberPrompt('How old are you?')
.on('data', (e) => console.log('Interim value', e.value))
.on('submit', (v) => console.log('Submitted with', v))
.on('abort', (v) => console.log('Aborted with', v))
Related
Contributing
If you have a question, found a bug or want to propose a feature, have a look at the issues page.