inquirer-prompt-suggest
Inquirer.js prompt for your less creative users
Last updated a year ago by olistic .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install inquirer-prompt-suggest 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.0                                ...           latest (a year ago)

1 Versions

  • 0.1.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 2
Last Month 7
Dependencies (2)
Dev Dependencies (8)

Copyright 2014 - 2016 © taobao.org |