inquirer-glob-prompt
Glob prompt for inquirer
Last updated 4 years ago by wwilsman .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install inquirer-glob-prompt 
SYNC missed versions from official npm registry.

inquirer-glob-prompt

Glob prompt for inquirer. Prompts for a glob and lists matching files as you type.

Installation

$ npm install --save inquirer-glob-prompt

Usage

import inquirer from 'inquirer';
import GlobPrompt from 'inquirer-glob-prompt';

// you can change 'glob' to any prefered type name
inquirer.registerPrompt('glob', GlobPrompt);

let answers = await inquirer.prompt([{
  type: 'glob',
  name: 'filePaths'
  // ...
}]);

console.log(answers);

Options

Takes type, name, message[, default, when, pageSize, glob] properties. See inquirer documentation for properties other than glob.

glob (Object) options are passed directly to fast-glob during initial render and whenever input changes.

Example

Run the example:

$ node example.js

License

MIT

Current Tags

  • 1.0.0                                ...           latest (4 years ago)

2 Versions

  • 1.0.0                                ...           4 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Total 9
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (11)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE