{"_id":"@bryce-gibson/inquirer-file-path","_rev":"2-0b51aeeaeac9749b6f45a8dc1e884d76","name":"@bryce-gibson/inquirer-file-path","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@bryce-gibson/inquirer-file-path","version":"1.0.0","description":"a file (relative to given path) selector for Inquirer.js","main":"index.js","scripts":{"test":"_mocha test/spec","preversion":"npm test","postversion":"git push && git push --tags"},"repository":{"type":"git","url":"git+https://github.com/bmbarker90/inquirer-file-path.git"},"keywords":["Inquirer","file","prompt","file picker"],"author":{"name":"Ben Barker","email":"barker.ben.m@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/bmbarker90/inquirer-file-path/issues"},"homepage":"https://github.com/bmbarker90/inquirer-file-path#readme","dependencies":{"chalk":"^1.1.1","cli-cursor":"^1.0.2","figures":"^1.4.0","inquirer":"^1.1.3","lodash":"^3.10.1","rx-lite":"^4.0.8","util":"^0.10.3"},"devDependencies":{"chai":"^3.4.1","events":"^1.1.0","mocha":"^2.3.4","mock-fs":"^3.5.0","sinon":"^1.17.2"},"gitHead":"b814709f9637ba5a4b9cd5f30f57316509c92516","_id":"@bryce-gibson/inquirer-file-path@1.0.0","_npmVersion":"5.7.1","_nodeVersion":"9.9.0","_npmUser":{"name":"bryce-gibson","email":"bgibson@limepoint.com"},"dist":{"integrity":"sha512-3QPXQ/tIx9G+sWGHextSV54qrKnWgqzOtFHrJdKmERcNLd5cLsowvc9uPI+0vpkoxq7/sc100W1F2a1X2aWghA==","shasum":"139bf459656bb9071e0adfed87a21110e7b9493a","tarball":"https://registry.npmjs.org/@bryce-gibson/inquirer-file-path/-/inquirer-file-path-1.0.0.tgz","fileCount":10,"unpackedSize":344666,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAp0Qs3hQgT4kwceTNtMSyH6n+O0qiWvGJTCsM1GOkg5AiAH/LmEtzjIugvL5cPjbhz8IoOoWcoDoBYYSDOy3hJVdw=="}]},"maintainers":[{"name":"bryce-gibson","email":"bgibson@limepoint.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inquirer-file-path_1.0.0_1521778634028_0.8439410616470975"},"_hasShrinkwrap":false}},"time":{"created":"2018-03-23T04:17:13.979Z","1.0.0":"2018-03-23T04:17:14.114Z","modified":"2022-04-04T20:49:52.942Z"},"maintainers":[{"name":"bryce-gibson","email":"bgibson@limepoint.com"}],"description":"a file (relative to given path) selector for Inquirer.js","homepage":"https://github.com/bmbarker90/inquirer-file-path#readme","keywords":["Inquirer","file","prompt","file picker"],"repository":{"type":"git","url":"git+https://github.com/bmbarker90/inquirer-file-path.git"},"author":{"name":"Ben Barker","email":"barker.ben.m@gmail.com"},"bugs":{"url":"https://github.com/bmbarker90/inquirer-file-path/issues"},"license":"MIT","readme":"# inquirer-file-path\n\nRelative File Path prompt for [inquirer](https://github.com/SBoudrias/Inquirer.js)\n\n[![Build Status](https://travis-ci.org/bmbarker90/inquirer-file-path.svg)](https://travis-ci.org/bmbarker90/inquirer-file-path)\n\n## Installation\n\n```\nnpm install --save inquirer-file-path\n```\n\n## Features\n- Support for symlinked files\n- Vim style navigation\n- Search for file with `/` key\n\n### Key Maps\n- Press `/` key to enter search mode.\n- Use either `up`/`down` arrow keys or `k`/`j` to navigate\n- Use `enter` to select option\n\n## Usage\n\n\nThis prompt is anonymous, meaning you can register this prompt with the type name you please:\n\n```javascript\ninquirer.registerPrompt('filePath', require('inquirer-file-path'));\ninquirer.prompt({\n  type: 'filePath',\n  ...\n})\n```\n\nChange `filePath` to whatever you might prefer.\n\n### Options\n\nTakes `type`, `name`, `message`, `basePath` properties.\n\nSee [inquirer](https://github.com/SBoudrias/Inquirer.js) readme for meaning of all except **basePath**.\n\n**basePath** is the relative path from your current working directory\n\n#### Example\n\n```javascript\ninquirer.registerPrompt('filePath', require('inquirer-file-path'));\ninquirer.prompt([{\n  type: 'file',\n  name: 'from',\n  message: 'Where you like to put this component?',\n  basePath: './src'\n}]).then(function(answers) {\n  // (answers.from is the path chosen)\n});\n```\n\nSee also [example.js](https://github.com/bmbarker/inquirer-file-path-path/blob/master/example.js) for a working example\n\n## Contributing\n<a name=\"contributing\"></a>\n\n**Unit test**\nUnit test are written in [Mocha](https://mochajs.org/). Please add a unit test for every new feature or bug fix. `npm test` to run the test suite.\n\n**Documentation**\nAdd documentation for every API change. Feel free to send typo fixes and better docs!\n\n## License\n\nMIT\n\n## Acknowledgements\nA huge thank you to Nick Randall and the other contributors of https://github.com/nicksrandall/inquirer-directory.\n\n## Future features\n- [ ] Add ability to config to filter options shown\n","readmeFilename":"README.md"}