{"name":"find-node-modules","version":"2.1.1","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":"d7a1ff02bd4e9c0b6dee472bae48a5e43a5745c2","_id":"find-node-modules@2.1.1","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-46adfFV0T5wQ00Ju+3E8LE/th+pY9PUzzC7taZfru6cYe7rjxXLo7QHv8OdN7dn/2MN12LKaRo/WcmXIVzdBtw==","shasum":"21f107e46895cd58a3ace582aadaccb402a95a6b","tarball":"http://registry-npm.ywwl.com/find-node-modules/download/find-node-modules-2.1.1.tgz","fileCount":22370,"unpackedSize":92835346,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgADEOCRA9TVsSAnZWagAA5ukP/imOSwHPpIc1QUXGv67o\nkA2BYwuk1ncgo/8KMfvMm17XOe6gmGiMbSqhTcC91Nfa+BgE0H1GySEyiqTQ\n1GLT6IRe8V7VA2uJttF9C6mzogW8cwatOACkNxP4uPObrPDvwh7aP8XuYr22\nn3DAkUA7tvu1oTbOXtV0pcHTK/IYfv1HPj3DYn1xObTyeauyYnPRsu/rLvY+\nrUp/AFQ0/0JQDpi6RzCHDvyHf/j1yGhqZ+b5noEb4ORpS1157ZdMbn95V2zO\nY/9I8k03rww7+pTtCik5aN0hNnqLeo8g9+wIA0lr2CKNQLun3pEAo40vlzJb\n+NCPw2BcPlUk8UCa4s8NcxpqrGAdqNtsAcQ7fu3r6PWCpaZIr1BCVcEqXxHM\nL1jWXVSCWhpu1GGFqM36V2bD3LBMYfIfZn3k4ddnJBSDUEHUB8Wbz1TzboPS\n+C/o6CSZfyqOCO3RlrhTqL3Me3xa1l4OvvciS9nM52yXhyfAcTrWpqyZdH2h\n47sq0EUuuCO97om+QVlJGFvfhDcTL5LfkFT6BBo6gXosIKqZ3JTku+8Cj9QL\nHVtbeJ+A90hgb/mErVhbTgYG0blDtAIG7MVphTgyhszzj1vsDOzz6n2i+rpc\nQlmcEMY4UV8EcTLJWid/oIkvaNug4lbHRQl0r6AQiDMXQd3a14IJk1o3GY5b\n1a32\r\n=D34u\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH0FJeNC2t/7Bff1mxyGLntbvAm5YZc4CDyCFwzkiKLJAiEAhl+bY2YZ8xy0xTFX92X2vTrCqdk87cOQ33MUQveRGpc="}],"size":19597416,"noattachment":false,"key":"/find-node-modules/-/find-node-modules-2.1.1.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.1_1610625293770_0.026904123420726567"},"_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":1610625294390,"_cnpm_publish_time":1610625294390,"dist-tags":{"latest":"2.1.3"}}