inquirer-file-selector
A prompt implementation for Inquirer.js that allows users to interactively select files or directories in the terminal.
Features
- Selection of files and directories
- Multi-select capability
- Fully customizable theme
- Custom filters for show only specific file types
- Keybinds are fully customizable
Installation
pnpm add inquirer-file-selector
# npm install inquirer-file-selector
NOTE: From version 1.0.0, this package requires Node.js 20 or higher. If you need use Node.js 18, please use an 0.x.x version of this package.
Basic Usage
import { fileSelector } from 'inquirer-file-selector'
const selection = await fileSelector({
message: 'Select a file or directory:'
})
Advanced Usage
See the full documentation and examples in .github/README.md.