{"name":"find-node-modules","version":"1.0.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":"^0.4.1","merge":"^1.2.0"},"devDependencies":{"faucet":"0.0.1","tape":"^3.5.0"},"gitHead":"347a20cfe77b78218910d04f9e6d1943d34b6c4e","_id":"find-node-modules@1.0.2","_shasum":"6b7b3fc3c340e9df85191cbcfafbb06e50e74bbc","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"callumacrae","email":"callum@macr.ae"},"dist":{"shasum":"6b7b3fc3c340e9df85191cbcfafbb06e50e74bbc","tarball":"http://registry-npm.ywwl.com/find-node-modules/download/find-node-modules-1.0.2.tgz","integrity":"sha512-T2t5R8Mjc2ixyqH2hwzHlUsFnckna6f4CalCKyFDDjOmXW4eltiwVPl30LJlsKarbgO2HEAWBF0Rovybbn+bDQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqfEjIkt4u4uR9fVtg39zKdULSIzc2FGlN48GDZsgdQAIhALstEZhHDJbo2jpvaKvVynb7WKNZjBY92fy4ONe9+KPv"}],"size":6895,"noattachment":false,"key":"/find-node-modules/-/find-node-modules-1.0.2.tgz"},"maintainers":[{"name":"callumacrae","email":"callum@macr.ae"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/find-node-modules-1.0.2.tgz_1467018412541_0.4181284662336111"},"directories":{},"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":1467018414971,"_cnpm_publish_time":1467018414971,"dist-tags":{"latest":"2.1.3"}}