Package Exports
- inquirer-file-tree-selection-prompt
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (inquirer-file-tree-selection-prompt) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Inquirer File Tree Selection Prompt
QuickDemo

Install
npm install inquirer-file-tree-selection-promptUsage
inquirer.registerPrompt('file-tree-selection', inquirerFileTreeSelection)
inquirer.prompt({
type: 'file-tree-selection',
...
})Options
Takes type, name, message[filter, validate, default, pageSize, onlyShowDir, root] properties. The extra options that this plugin provides are:
onlyShowDir: (Boolean) if true, will only show directory. Default: false.root: (String) it is the root of file tree. Default: process.cwd().
Example
const inquirer = require('inquirer')
const inquirerFileTreeSelection = require('inquirer-file-tree-selection-prompt')
inquirer.registerPrompt('file-tree-selection', inquirerFileTreeSelection)
inquirer
.prompt([
{
type: 'file-tree-selection',
name: 'file'
}
])
.then(answers => {
console.log(JSON.stringify(answers))
});