{"name":"inquirer-fuzzy-path","version":"2.0.0","description":"Fuzzy file/directory search and select prompt for inquirer.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["fuzzy","inquirer","directory","file","search","select"],"author":{"name":"adelsz"},"license":"ISC","homepage":"https://github.com/adelsz/inquirer-fuzzy-path","dependencies":{"ansi-styles":"^3.2.1","fuzzy":"^0.1.3","inquirer":"^5.2.0","inquirer-autocomplete-prompt":"^0.12.2","strip-ansi":"^4.0.0"},"engines":{"node":">=8.0"},"devDependencies":{"eslint":"^5.4.0","eslint-config-airbnb-base":"^13.1.0","eslint-plugin-import":"^2.14.0"},"gitHead":"e80e9ac0e5028ed2296db7f67dc2dcc1de06e7d6","_id":"inquirer-fuzzy-path@2.0.0","_npmVersion":"6.1.0","_nodeVersion":"10.7.0","_npmUser":{"name":"aldesz","email":"aldewrk@tuta.io"},"dist":{"integrity":"sha512-lKNKDvCQ4qgAHF+VSLurmEVhP04L5Ek+gqvEZ9R7ZJVG0D36Fj/jeIPrvjJcAs8FeEq9Q8I2//vDSfCTMJMTug==","shasum":"b75f95a246e91bd256431f11091b4cabf6cf5876","tarball":"http://registry-npm.ywwl.com/inquirer-fuzzy-path/download/inquirer-fuzzy-path-2.0.0.tgz","fileCount":6,"unpackedSize":69219,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcTaVbCRA9TVsSAnZWagAAhwMP/REWcSFNA9brI+e988fG\nIVKEyVzgNBkI3Jz1/S2dT+RXjYX6zlejSevoSXw1ZxQKa2S1Lik6rapnfJXZ\n4XnrCoYzM8SS/5wdo3kTwg9Tunt4K1KeJV0nUu5+g3lDQ3bvhxoFus/K95gk\nyzm6JfWlU0H5uOeIM8lNttlhBGK0UbeNxo6Kav0jU0pqjtuxZCguAOPzqGTu\nYoOSmehzupuUOb5Qn21wU5Ei1yU1zGdmI1O6xqnVF6OxpAzmLsKtW4omu321\n66zr8eozOWuAzrfpEjIKjG7Xs5iog44oDMwxhFR22zMq8VWfaDpBFnu/fWsy\nJSVnHT2qsnFwhQHxPFZsWK6kJtcjzm67tTpGa8wLsWtywdUsnmBCpFAasBm7\nVrbzpQxSv1XVOI/jn9y4oAvbNGEQcAkgqK31jqSfTSZiCulud5R4GqloRVHP\noypZ0HHWIckK0UiZyWsZfqlHFDoUuWD+4OsrFZX5d5DyUGeBYyhR7SgbTLEV\nI7QejitqSR2Kbxwq8xKyV5q/MjuAFgYyn6PhRtOEHcm5P9NBKed5AdtGMUsB\n1gIZzhT+G/a4yvHrnqcF3HbeCKSVlMhViPYH0Kb5eRxsdJ00C5XS/4LHHqT2\nj2GsT8xxJdDLG5RTsCaqGsIA91Z/2NFCYV48/1YsT0fHpQGAyDpnQRg2LgS2\n8mTr\r\n=i6ZG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUTstdOeletjlXjuvYAtii9ev6kDksAvtU7s00Ia7kugIgBGNiqsKtO92YSNiUp6VDlrPxawo8w1IQNr+6x6EkFrI="}],"size":55597,"noattachment":false,"key":"/inquirer-fuzzy-path/-/inquirer-fuzzy-path-2.0.0.tgz"},"maintainers":[{"name":"aldesz","email":"aldewrk@tuta.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inquirer-fuzzy-path_2.0.0_1548592474926_0.45499947526403894"},"_hasShrinkwrap":false,"readme":"# inquirer-fuzzy-path\n\n\n[![npm](https://img.shields.io/npm/v/inquirer-fuzzy-path)](https://www.npmjs.com/package/inquirer-fuzzy-path)\n[![npm](https://img.shields.io/npm/dw/inquirer-fuzzy-path)](https://www.npmjs.com/package/inquirer-fuzzy-path)\n\nFuzzy file/directory search and select prompt for Inquirer.js \n\n![inquirer-fuzzy-path demo](https://raw.githubusercontent.com/adelsz/inquirer-fuzzy-path/master/recording.gif)\n\n## Usage\n\nRegister the prompt with inquirer:\n```javascript\ninquirer.registerPrompt('fuzzypath', require('inquirer-fuzzy-path'))\n```\n\nCall the prompt:\n```javascript\n  return inquirer.prompt([\n    {\n      type: 'fuzzypath',\n      name: 'path',\n      excludePath: nodePath => nodePath.startsWith('node_modules'),\n        // excludePath :: (String) -> Bool\n        // excludePath to exclude some paths from the file-system scan\n      excludeFilter: nodePath => nodePath == '.',\n        // excludeFilter :: (String) -> Bool\n        // excludeFilter to exclude some paths from the final list, e.g. '.'\n      itemType: 'any',\n        // itemType :: 'any' | 'directory' | 'file'\n        // specify the type of nodes to display\n        // default value: 'any'\n        // example: itemType: 'file' - hides directories from the item list\n      rootPath: 'app',\n        // rootPath :: String\n        // Root search directory\n      message: 'Select a target directory for your component:',\n      default: 'components/',\n      suggestOnly: false,\n        // suggestOnly :: Bool\n        // Restrict prompt answer to available choices or use them as suggestions\n      depthLimit: 5,\n        // depthLimit :: integer >= 0\n        // Limit the depth of sub-folders to scan\n        // Defaults to infinite depth if undefined\n    }\n  ]);\n```\n\n## Change log\n* In version 2.2.0 new option `excludeFilter` was added.\n* In version 2.1.0 new option `depthLimit` was added.\n* In version 2.0.0 option `filterPath` was deprecated. Please use `excludePath` and `itemType` instead.\n\n## Related\n\n- [inquirer](https://github.com/SBoudrias/Inquirer.js) - A collection of common interactive command line user interfaces\n\n## License\n\nMIT © [adelsz](https://github.com/adelsz)\n","publish_time":1548592475087,"_cnpm_publish_time":1548592475087,"dist-tags":{"latest":"2.3.0"}}