Socket
Book a DemoInstallSign in
Socket

inquirer-glob-prompt

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inquirer-glob-prompt

Glob prompt for inquirer

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
401
40.21%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 09 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts