Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

inquirer-prompt-suggest

0.1.0 • Public • Published

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

Install

npm i inquirer-prompt-suggest

DownloadsWeekly Downloads

51

Version

0.1.0

License

MIT

Unpacked Size

5.87 kB

Total Files

7

Last publish

Collaborators

  • avatar