inquirer-file-selector
Version:
Inquirer file selector prompt.
34 lines (23 loc) • 889 B
Markdown
for [Inquirer.js](https://github.com/SBoudrias/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-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](.github/README.md).
A prompt implementation