inquirer-orderedcheckbox
Inquirer extension that allows a list to be ordered and selected.
License
The License information is available in license.txt
Installation
npm install --save inquirer-orderedcheckbox
Usage
This prompt is anonymous, meaning you can register this prompt with the type name you please:
inquirer;inquirerprompt type: 'orderedcheckbox' ...
Options
Takes type
, name
, message
, validate
, choices
properties.
See inquirer readme for meaning of all
Example
inquirer;inquirerprompt type: 'orderedCheckbox' message: 'Select toppings' name: 'toppings' choices: name: 'Pepperoni' name: 'Ham' name: 'Ground Meat' name: 'Bacon' name: 'Extra cheese' { if answerlength < 1 return 'You must choose at least one topping.'; return true; } ;
Thanks
Thanks to https://github.com/nicksrandall/inquirer-directory for the information on how to produce this plugin.