{"name":"find-node-modules","version":"2.1.3","description":"Return an array of all parent node_modules directories","main":"index.js","scripts":{"test":"node ./test | faucet"},"repository":{"type":"git","url":"git+https://github.com/callumacrae/find-node-modules.git"},"author":{"name":"Callum Macrae","email":"callum@macr.ae"},"license":"MIT","bugs":{"url":"https://github.com/callumacrae/find-node-modules/issues"},"homepage":"https://github.com/callumacrae/find-node-modules","dependencies":{"findup-sync":"^4.0.0","merge":"^2.1.1"},"devDependencies":{"faucet":"0.0.1","tape":"4.6.0"},"gitHead":"cee52279ddd1be45963ae7d86f2267d6341ef78c","_id":"find-node-modules@2.1.3","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-UC2I2+nx1ZuOBclWVNdcnbDR5dlrOdVb7xNjmT/lHE+LsgztWks3dG7boJ37yTS/venXw84B/mAW9uHVoC5QRg==","shasum":"3c976cff2ca29ee94b4f9eafc613987fc4c0ee44","tarball":"http://registry-npm.ywwl.com/find-node-modules/download/find-node-modules-2.1.3.tgz","fileCount":8,"unpackedSize":4575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiHe0+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqCBg//ewkXPtPTWxA4RsKhxl88wBJmsdbalBzIV+Qfnkr04RJoov0L\r\nd5lXe7JkLAQ6rZkWAIyOl7E0ArMfWVzsqG+MqMSBPGsFzlXQ1c2hPWHezCcq\r\nwaIxaji6LBKOKSFQCmr+CrU8bXMQ3KjkX3hef2ZwjKHusFa76moa3BmOb9LR\r\nVE9H+cOiFpREHhMNmY/VROfE/YTMaZwhDGsT7u6iDhDfa3ZvBk38XZD4VQi7\r\nideQysqEjxXE7p6AQPPpEkDfAvT4vv+sNh/q+NdJ2pegyEWNLUvW28l1smMx\r\nWOwtjscrDuYrfJsGLB7Bxqi+AGoG+jTww/SaxA7FsIQSkcNw23XJbjMa3sgY\r\nWfT953Dt3J1JWu/V8tDRGnP1dyWSFQ112mnbilmHKCvthvzj95IcoVTvWOJH\r\nSEu7aYcGvAqvJjYSu4qfoSgS6Pyr3ENwSO6x9v+Mo5Ta6sapIidTT+UOyrsk\r\nRSRZHomAAnjTPIcoLP0Y1dKM3V3Hygnvk+H26rcnIc2QmzwP1+i19B5LcNrZ\r\n2hO9iEddgfiyohSxg62JigaPpeOHqB1KFYe9ZkqkpvkkB16RagZCz1Mae/aM\r\nfyDmEAvaxU5gvk8H/Nbl/J/imw3mYhJ7YHA2th7jW2+Ll0ghjbHPwEI0OBtX\r\nSoyjv7Rvwt7CgAo4dbFxWlyHzvMZaMqWCyM=\r\n=my5U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9Y+kzKXThl7uaEiptaKeBiU4doJlrS5Na9A3yScndvQIgQXVK9aPtRylqbG4B8vdi2DcvEhjUPa9w+15LYPIWLwc="}],"size":1862,"noattachment":false,"key":"/find-node-modules/-/find-node-modules-2.1.3.tgz"},"_npmUser":{"name":"callumacrae","email":"callum@macr.ae"},"directories":{},"maintainers":[{"name":"callumacrae","email":"callum@macr.ae"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-node-modules_2.1.3_1646128446225_0.941249723701713"},"_hasShrinkwrap":false,"readme":"# find-node-modules\n\nThis is a little node module to find the path of every parent node_modules\ndirectory. It's useful for things like Sass, where you can't specify the exact\npath to individual modules (in which case [findup-sync] would be sufficient),\nand you can't just give an array of parent node_modules which might exist,\nbecause it will error if they don't.\n\nIn most cases you're trying to find node_modules directories, findup-sync\nshould be sufficient. This library is specifically for if you want an array\ncontaining all the parent node_modules paths. If you loop through the output\nof this library, you should be using findup-sync instead.\n\n## Install\n\n```\n$ npm install --save find-node-modules\n```\n\n## Usage\n\n```js\nvar findNodeModules = require('find-node-modules');\n\nfindNodeModules();\n//=> ['node_modules', '../../node_modules']\n\nfindNodeModules({ cwd: './someDir' });\n//=> ['../node_modules', '../../../node_modules']\n\nfindNodeModules('./someDir');\n//=> ['../node_modules', '../../../node_modules']\n\nfindNodeModules({ cwd: './someDir', relative: false });\n//=> ['/path/to/something/node_modules', '/path/node_modules']\n```\n\n## License\n\nThis is released under the MIT license.\n\n\n\n[findup-sync]: https://www.npmjs.com/package/findup-sync","publish_time":1646128446380,"_cnpm_publish_time":1646128446380,"dist-tags":{"latest":"2.1.3"}}