{"_id":"inquirer-file-path","_rev":"4-8b51462afe73b57e2792c14b61f46086","name":"inquirer-file-path","description":"a file (relative to given path) selector for Inquirer.js","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"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/bmbarker/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/bmbarker/inquirer-file-path/issues"},"homepage":"https://github.com/bmbarker/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":"2106bad01696e497d2ef3ea037537732914b3c2b","_id":"inquirer-file-path@1.0.0","_shasum":"87626b5a774277a934880d2aa5061e0f510bee60","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"bmbarker-domo","email":"ben.barker@domo.com"},"dist":{"shasum":"87626b5a774277a934880d2aa5061e0f510bee60","tarball":"https://registry.npmjs.org/inquirer-file-path/-/inquirer-file-path-1.0.0.tgz","integrity":"sha512-zzw4iCENYCbpPv+APkHPX4EHs6cNduux3JuogR3ty2ui3B1ClOR/T/bH/Jeqcyjag6hYLfLk+Lp06XD6dWlR/w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICNluLh8iL2e1OKH3wVvJ5X4Y8WaThGAAMO32iTrjlb2AiAseISj3yTQDTbhd79Sz2Nw7+jiLSDDtxcKTA20ZSE/iw=="}]},"maintainers":[{"name":"bmbarker-domo","email":"ben.barker@domo.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/inquirer-file-path-1.0.0.tgz_1487348912204_0.1871251726988703"},"directories":{}},"1.0.1":{"name":"inquirer-file-path","version":"1.0.1","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":"008de704cb15635332f66f01da234a2a70553013","_id":"inquirer-file-path@1.0.1","_shasum":"653de339f64e64399940c58da9b8e1bee4b7e55e","_from":".","_npmVersion":"4.6.1","_nodeVersion":"6.10.0","_npmUser":{"name":"bmbarker-domo","email":"ben.barker@domo.com"},"dist":{"shasum":"653de339f64e64399940c58da9b8e1bee4b7e55e","tarball":"https://registry.npmjs.org/inquirer-file-path/-/inquirer-file-path-1.0.1.tgz","fileCount":11,"unpackedSize":344520,"integrity":"sha512-fdiki0i6Ieha7+SJ6FzQOjbB1KmGr/G1dCGvM9gdvgOPra934QaVhq+oE7q/aNYNhALxreT+Lcv8jyCK9bsTrA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH43bgF0xfjHJ3C2/a4XrZcjwisw7sy/+26SVpQVm72mAiAVzN6tp63w4X7zXziV6u3KLmlQBmeCnYER9P3qCpR3sQ=="}]},"maintainers":[{"name":"bmbarker-domo","email":"ben.barker@domo.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inquirer-file-path_1.0.1_1521817731625_0.7360775081417066"},"_hasShrinkwrap":false}},"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","maintainers":[{"name":"bmbarker-domo","email":"ben.barker@domo.com"}],"time":{"modified":"2022-06-19T01:28:06.342Z","created":"2017-02-17T16:28:32.480Z","1.0.0":"2017-02-17T16:28:32.480Z","1.0.1":"2018-03-23T15:08:51.896Z"},"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","readmeFilename":"README.md"}