1.0.0 • Published 7 years ago
inquirer-confirm-warning v1.0.0
Installation
npm install inquirer-confirm-warning
inquirer.registerPrompt('warning', require('inquirer-confirm-warning'));
If using with plop then in your plop config:
plop.addPrompt('warning', require('inquirer-confirm-warning'));
Examples
You can see it in action.
Get to the examples folder and run:
node example/simple_example.js
Usage
Take type
, name
, message
, [default: Bool, warnif: Bool, warning: String]
properties.
Takes chalk color names (e.g white
, yellow
, red
).
inquirer.prompt({
type: 'warning',
message: message
warning: 'Some sort of warning!',
color: 'yellow',
warnif: true
});
1.0.0
7 years ago