{"name":"find-node-modules","version":"2.1.2","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.0"},"devDependencies":{"faucet":"0.0.1","tape":"4.6.0"},"gitHead":"ba3a26d09f5fc1202313e74b875faeabf9aae746","_id":"find-node-modules@2.1.2","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-x+3P4mbtRPlSiVE1Qco0Z4YLU8WFiFcuWTf3m75OV9Uzcfs2Bg+O9N+r/K0AnmINBW06KpfqKwYJbFlFq4qNug==","shasum":"57565a3455baf671b835bc6b2134a9b938b9c53c","tarball":"http://registry-npm.ywwl.com/find-node-modules/download/find-node-modules-2.1.2.tgz","fileCount":8,"unpackedSize":4575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgE9fhCRA9TVsSAnZWagAAKpEP/AwN4wY42w9+XCEdfK6A\nNQnMASO4WIPeXdm8rfkbnM0+vstUuIGBot7fymw2GxH+HJim+DVS2uxpZOsq\nkHCm+DSfoORt+rkr29yrFVURb5ArVBpCF52Qgwqv6Ci5mPvYU2V0qhmg2Yl8\n6yztKEQPtBp6Sxr/Px72EMlVQNRH+NiCEmkmTc2HWF5d54BNpmgr2fkgl2dK\nNn4KPmY+WY1BEaw05JW2Ti/O+PvYhylwXzWx6XVWSUjQ/pSJ01ALo12Twv1C\n7ChFL631EM/ZyAFcc8d2wEfWCN4xIgn9OhvX0Wo+5NruePlnawheSqw3xC5v\ngeNPCWRRm0ZabXqtE8X2hJdp743xmHCZ8rLJuHUNMM0362TGLtpECXIqnK4A\nrHBRTIXUuiIn+54gGy8OnlSnRoOaib5ueLHiTyfa27/ONX/jyFsI0hJHczLY\nMdsT6i9ewSR5v1YYlbZoG2xUUH+V3Dn+4mc0rwX6i7nbEEcw0UZeBtdeaQbd\n2vP2fbgYVkundBf4v8/+UlK+7dy+xcPDtv5We82FRTF/RZkR5vsWr224q+nD\nokysXRiQ/HKGn7APJAKSjZmwF3NNlfYlgAxStYCMeymXbMtoYpr1qc8Rqth0\nqNyH23k4oF4K5XZonfHflSLxcz8Z+lpa6Rx9iwxjJHK9PvU4njikMkPwCXBL\nMxxp\r\n=txbD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHFv1k60N7EcP6czB4ZvTCy53kfsUR4X9SvAl0rFpHg+AiBIGFzvtABFbfV0CMO7agvvVi2H1/ehfvfhEXguBpSJfA=="}],"size":1889,"noattachment":false,"key":"/find-node-modules/-/find-node-modules-2.1.2.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.2_1611913184872_0.3646480322367429"},"_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":1611913185013,"_cnpm_publish_time":1611913185013,"dist-tags":{"latest":"2.1.3"}}