Inquirer file selector prompt.
npm install inquirer-file-selectorA prompt implementation for Inquirer.js that allows users to interactively select files or directories in the terminal.
- Selection of files and directories
- Multi-select capability
- Fully customizable theme
- Custom filters for show only specific file types
- Keybinds are fully customizable
``sh`
pnpm add inquirer-file-selectornpm 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.
`ts
import { fileSelector } from 'inquirer-file-selector'
const selection = await fileSelector({
message: 'Select a file or directory:'
})
``
See the full documentation and examples in .github/README.md.