a file (relative to given path) selector for Inquirer.js
npm install inquirer-file-pathRelative File Path prompt for inquirer

```
npm install --save inquirer-file-path
key$3
- Press / key to enter search mode.
- Use either up/down arrow keys or k/j to navigate
- Use enter to select optionUsage
This prompt is anonymous, meaning you can register this prompt with the type name you please:
`javascript
inquirer.registerPrompt('filePath', require('inquirer-file-path'));
inquirer.prompt({
type: 'filePath',
...
})
`Change
filePath to whatever you might prefer.$3
Takes
type, name, message, basePath properties.See inquirer readme for meaning of all except basePath.
basePath is the relative path from your current working directory
#### Example
`javascript
inquirer.registerPrompt('filePath', require('inquirer-file-path'));
inquirer.prompt([{
type: 'file',
name: 'from',
message: 'Where you like to put this component?',
basePath: './src'
}]).then(function(answers) {
// (answers.from is the path chosen)
});
`See also example.js for a working example
Contributing
Unit test
Unit test are written in Mocha. Please add a unit test for every new feature or bug fix.
npm test` to run the test suite.Documentation
Add documentation for every API change. Feel free to send typo fixes and better docs!
MIT