inquirer-file-selector
Version:
Inquirer file selector prompt.
40 lines (27 loc) • 1.04 kB
Markdown
A file selector prompt for [Inquirer.js](https://github.com/SBoudrias/Inquirer.js) that allows users to interactively select files or directories from the terminal.
- 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
```sh
pnpm add inquirer-file-selector
```
## Basic Usage
```ts
import { fileSelector } from 'inquirer-file-selector'
const selection = await fileSelector({
message: 'Select a file or directory:'
})
console.log(selection)
```
See the full documentation and examples in GitHub [README.md](.github/README.md).
© 2024 [Brian Fernandez](https://github.com/br14n-sol) (main maintainer) and contributors.
This project is licensed under the [MIT License](./LICENSE).