UNPKG

inquirer-file-selector

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