inquirer-prompt-suggest
v0.1.0
Published
Inquirer.js prompt for your less creative users
Downloads
92,816
Maintainers
Readme
inquirer-prompt-suggest
Inquirer.js prompt for your less creative users.
Installation
npm install --save inquirer-prompt-suggest
Usage
- Register the prompt:
inquirer.registerPrompt('suggest', require('inquirer-prompt-suggest'));
- Use it:
inquirer.prompt({
type: 'suggest',
name: 'kittenName',
message: 'Enter a name for your kitten:',
suggestions: ['Oliver', 'Luna', 'Charlie', 'Bella', 'Max', 'Lucy'],
});
Options
Takes all input properties, plus:
suggestions
(string[]): A list of suggestions.
License
MIT