A prompt implementation for Inquirer.js that allows users to interactively select files or directories in the terminal.
- File & Directory Selection – Browse and select files from the terminal.
- Multiple Selection – Select multiple files at once. (not ready)
- Custom Filters – Apply filters to show only specific file types.
- Keyboard Navigation – Use arrow keys for easy selection.
- Theming – Customize the appearance of the prompt.
pnpm (recommended) | npm |
---|---|
pnpm add inquirer-file-selector |
npm install inquirer-file-selector |
import {
fileSelector,
type Item
} from 'inquirer-file-selector'
const selection: Item = await fileSelector({
message: 'Select a file or directory:'
})
See the full documentation in the docs/ directory:
- Getting Started (not ready)
- Theming (not ready)
- Examples (not ready)
Contributions are welcome! See CONTRIBUTING.md for more information.
© 2024 Brian Fernandez and Contributors.
This project is licensed under the MIT license. See the file LICENSE for details.