inquirer-file-selector
v2.0.0
Published
Inquirer file selector prompt.
Readme
inquirer-file-selector
A file selector prompt for Inquirer.js that allows users to interactively select files or directories from the terminal.
Features
- File and directory selection
- Multi-select support
- Custom filters to show only specific file types
- Restrict back navigation to a specific parent directory
- Cancel selection with a key press (configurable)
- Fully customizable keybinds
- Fully customizable theme
Installation
pnpm add inquirer-file-selectorBasic Usage
import { fileSelector } from 'inquirer-file-selector'
const selection = await fileSelector({
message: 'Select a file or directory:'
})
console.log(selection)Advanced Usage
See the full documentation and examples in GitHub README.md.
Copyright & License
© 2024 Brian Fernandez (main maintainer) and contributors.
This project is licensed under the MIT License.
