enquirer-prompt-rawlist
Adds
rawlist
prompt support to Enquirer.
Install
Install with npm:
$ npm install --save enquirer-prompt-rawlist
Usage
Functional style
var Enquirer = ;var enquirer = ; enquirer; enquirer;enquirer; enquirer ;
Declarative style
Define questions using a declarative style, like Inquirer.
var Enquirer = ;var enquirer = ; enquirer; var questions = type: 'rawlist' name: 'dinner' message: 'What would you like to do?' choices: 'Order a pizza' 'Make a reservation' enquirer 'Ask opening hours' 'Talk to the receptionist' type: 'rawlist' name: 'size' message: 'What size would you like?' choices: 'Jumbo' 'Large' 'Standard' 'Medium' 'Small' 'Micro' ; enquirer ;
Attribution
Based on the rawlist
prompt in inquirer.
About
Related projects
- enquirer-prompt-checkbox: Adds checkbox prompt support to Enquirer. | homepage
- enquirer-prompt-confirm: Adds
confirm
(yes/no) prompt support to Enquirer. | homepage - enquirer-prompt-radio: Adds
radio
prompt support to Enquirer. This prompt behaves like other radio-button interfaces, where only… more | homepage - prompt-base: Base prompt module used for creating custom prompt types for Enquirer. | homepage
- prompt-question: Question object, used by Enquirer and prompt plugins. | homepage
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Running tests
Install dev dependencies:
$ npm install -d && npm test
Author
Jon Schlinkert
License
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb-generate-readme, v0.1.30, on August 30, 2016.