inquirer-prompt-suggest

Inquirer.js prompt for your less creative users

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
inquirer-prompt-suggest
1420.1.04 years ago4 years agoMinified + gzip package size for inquirer-prompt-suggest in KB

Readme

inquirer-prompt-suggest
Inquirer.js prompt for your less creative users.
Preview

Installation

npm install --save inquirer-prompt-suggest

Usage

  1. Register the prompt:

inquirer.registerPrompt('suggest', require('inquirer-prompt-suggest'));

  1. 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