@justinc/yesno
v1.0.0
Published
Inquirer.js wrapper for asking a (confirm by default) question
Downloads
2
Readme
Inquirer.js wrapper for asking a (confirm by default) question.
Installation
npm install @justinc/yesno
Usage
require('@justinc/yesno')({ message: 'Do you want to do X?' }).then(answer => {
if (answer.yes) {
console.log('Doing X');
} else {
console.log('Not doing X');
}
});