1.0.0 • Published 9 years ago
inquirer-confirm-warning v1.0.0
Installation
npm install inquirer-confirm-warninginquirer.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.jsUsage
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
9 years ago