Relative Directory prompt for inquirer
npm install --save inquirer-directory
- Support for symlinked files
- Vim style navigation
- Search for file with "/" key
- Press "/" key to enter search mode.
- Press "-" key to go up (back) a directory.
This prompt is anonymous, meaning you can register this prompt with the type name you please:
directory to whatever you might prefer.
See inquirer readme for meaning of all except basePath.
basePath is the relative path from your current working directory
inquirer;inquirerprompttype: 'directory'name: 'from'message: 'Where you like to put this component?'basePath: './src';
See also example.js for a working example