{"_id":"find-node-modules","_rev":"2978881","name":"find-node-modules","description":"Return an array of all parent node_modules directories","dist-tags":{"latest":"2.1.3"},"maintainers":[{"name":"callumacrae","email":"callum@macr.ae"}],"time":{"modified":"2023-06-26T03:22:00.000Z","created":"2015-02-04T12:34:27.284Z","2.1.3":"2022-03-01T09:54:06.380Z","2.1.2":"2021-01-29T09:39:45.013Z","2.1.1":"2021-01-14T11:54:54.390Z","2.1.0":"2020-07-15T09:40:13.413Z","2.0.0":"2019-02-21T15:50:37.747Z","1.0.4":"2016-09-21T08:18:08.865Z","1.0.3":"2016-06-27T12:31:34.627Z","1.0.2":"2016-06-27T09:06:54.971Z","1.0.1":"2015-02-05T13:38:54.855Z","1.0.0":"2015-02-04T12:34:27.284Z"},"users":{"hipsterzipster":true},"author":{"name":"Callum Macrae","email":"callum@macr.ae"},"repository":{"type":"git","url":"git+https://github.com/callumacrae/find-node-modules.git"},"versions":{"2.1.3":{"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":{"shasum":"3c976cff2ca29ee94b4f9eafc613987fc4c0ee44","size":1862,"noattachment":false,"key":"/find-node-modules/-/find-node-modules-2.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-node-modules/download/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,"_cnpmcore_publish_time":"2022-03-01T09:55:41.701Z","publish_time":1646128446380,"_cnpm_publish_time":1646128446380},"2.1.2":{"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":{"shasum":"57565a3455baf671b835bc6b2134a9b938b9c53c","size":1889,"noattachment":false,"key":"/find-node-modules/-/find-node-modules-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-node-modules/download/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,"publish_time":1611913185013,"_cnpm_publish_time":1611913185013},"2.1.1":{"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":{"shasum":"21f107e46895cd58a3ace582aadaccb402a95a6b","size":19597416,"noattachment":false,"key":"/find-node-modules/-/find-node-modules-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-node-modules/download/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,"publish_time":1610625294390,"_cnpm_publish_time":1610625294390},"2.1.0":{"name":"find-node-modules","version":"2.1.0","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":"^1.2.1"},"devDependencies":{"faucet":"0.0.1","tape":"4.6.0"},"gitHead":"2f4a0ddc9e40f5ead65787104efe8278cbbf35c9","_id":"find-node-modules@2.1.0","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"shasum":"d9179cd1abd517622353f766da0807f912d21b06","size":1891,"noattachment":false,"key":"/find-node-modules/-/find-node-modules-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-node-modules/download/find-node-modules-2.1.0.tgz"},"maintainers":[{"name":"callumacrae","email":"callum@macr.ae"}],"_npmUser":{"name":"callumacrae","email":"callum@macr.ae"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-node-modules_2.1.0_1594806013265_0.5888006394878607"},"_hasShrinkwrap":false,"publish_time":1594806013413,"_cnpm_publish_time":1594806013413},"2.0.0":{"name":"find-node-modules","version":"2.0.0","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":"^3.0.0","merge":"^1.2.1"},"devDependencies":{"faucet":"0.0.1","tape":"4.6.0"},"gitHead":"73a6a52fc95e2c48ddcc055e337d6d74ba3f94e8","_id":"find-node-modules@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"callumacrae","email":"callum@macr.ae"},"dist":{"shasum":"5db1fb9e668a3d451db3d618cd167cdd59e41b69","size":1882,"noattachment":false,"key":"/find-node-modules/-/find-node-modules-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-node-modules/download/find-node-modules-2.0.0.tgz"},"maintainers":[{"name":"callumacrae","email":"callum@macr.ae"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-node-modules_2.0.0_1550764237621_0.9283474419022779"},"_hasShrinkwrap":false,"publish_time":1550764237747,"_cnpm_publish_time":1550764237747},"1.0.4":{"name":"find-node-modules","version":"1.0.4","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.2","merge":"^1.2.0"},"devDependencies":{"faucet":"0.0.1","tape":"4.6.0"},"gitHead":"e6517ecf2e0d29b759b0634b2ffb44643aa7a938","_id":"find-node-modules@1.0.4","_shasum":"b6deb3cccb699c87037677bcede2c5f5862b2550","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"callumacrae","email":"callum@macr.ae"},"dist":{"shasum":"b6deb3cccb699c87037677bcede2c5f5862b2550","size":1944,"noattachment":false,"key":"/find-node-modules/-/find-node-modules-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-node-modules/download/find-node-modules-1.0.4.tgz"},"maintainers":[{"name":"callumacrae","email":"callum@macr.ae"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/find-node-modules-1.0.4.tgz_1474445887075_0.5429407160263509"},"directories":{},"publish_time":1474445888865,"_cnpm_publish_time":1474445888865,"_hasShrinkwrap":false},"1.0.3":{"name":"find-node-modules","version":"1.0.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":"^0.2.1","merge":"^1.2.0"},"devDependencies":{"faucet":"0.0.1","tape":"^3.5.0"},"gitHead":"659662ad612f1c3aeeb95a63ba30ed0910552d47","_id":"find-node-modules@1.0.3","_shasum":"36117ea45c13d5d8352f82ba791c2b835d730a14","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"callumacrae","email":"callum@macr.ae"},"dist":{"shasum":"36117ea45c13d5d8352f82ba791c2b835d730a14","size":6903,"noattachment":false,"key":"/find-node-modules/-/find-node-modules-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-node-modules/download/find-node-modules-1.0.3.tgz"},"maintainers":[{"name":"callumacrae","email":"callum@macr.ae"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/find-node-modules-1.0.3.tgz_1467030691984_0.17237108293920755"},"directories":{},"publish_time":1467030694627,"_cnpm_publish_time":1467030694627,"_hasShrinkwrap":false},"1.0.2":{"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","size":6895,"noattachment":false,"key":"/find-node-modules/-/find-node-modules-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-node-modules/download/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":{},"publish_time":1467018414971,"_cnpm_publish_time":1467018414971,"_hasShrinkwrap":false},"1.0.1":{"name":"find-node-modules","version":"1.0.1","description":"Return an array of all parent node_modules directories","main":"index.js","scripts":{"test":"node ./test | faucet"},"repository":{"type":"git","url":"https://github.com/callumacrae/find-node-modules"},"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.2.1","merge":"^1.2.0"},"devDependencies":{"faucet":"0.0.1","tape":"^3.5.0"},"gitHead":"1a894ad1e4945643426022a84bf18e3e7ddf39cd","_id":"find-node-modules@1.0.1","_shasum":"4659628ec5b5e2f12645eae605899ae2ee696959","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"callumacrae","email":"callum@macr.ae"},"maintainers":[{"name":"callumacrae","email":"callum@macr.ae"}],"dist":{"shasum":"4659628ec5b5e2f12645eae605899ae2ee696959","size":6344,"noattachment":false,"key":"/find-node-modules/-/find-node-modules-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-node-modules/download/find-node-modules-1.0.1.tgz"},"directories":{},"publish_time":1423143534855,"_cnpm_publish_time":1423143534855,"_hasShrinkwrap":false},"1.0.0":{"name":"find-node-modules","version":"1.0.0","description":"Return an array of all parent node_modules directories","main":"index.js","scripts":{"test":"node ./test | faucet"},"repository":{"type":"git","url":"https://github.com/callumacrae/find-node-modules"},"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.2.1","merge":"^1.2.0"},"devDependencies":{"faucet":"0.0.1","tape":"^3.5.0"},"gitHead":"b08812652be1f6615d160ec23f0974e81f9d11cc","_id":"find-node-modules@1.0.0","_shasum":"a4f1b3624833bbf20b0debc08474c9c79b08aac8","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"callumacrae","email":"callum@macr.ae"},"maintainers":[{"name":"callumacrae","email":"callum@macr.ae"}],"dist":{"shasum":"a4f1b3624833bbf20b0debc08474c9c79b08aac8","size":5915,"noattachment":false,"key":"/find-node-modules/-/find-node-modules-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-node-modules/download/find-node-modules-1.0.0.tgz"},"directories":{},"publish_time":1423053267284,"_cnpm_publish_time":1423053267284,"_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","_attachments":{},"homepage":"https://github.com/callumacrae/find-node-modules","bugs":{"url":"https://github.com/callumacrae/find-node-modules/issues"},"license":"MIT"}