{"_id":"find-up","_rev":"4062995","name":"find-up","description":"Find a file or directory by walking up parent directories","dist-tags":{"latest":"8.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2025-09-24T04:25:35.000Z","created":"2015-09-01T07:15:16.509Z","8.0.0":"2025-09-16T01:13:57.112Z","7.0.0":"2023-11-16T12:22:36.533Z","6.3.0":"2022-02-08T07:21:18.171Z","6.2.0":"2021-10-07T14:56:58.251Z","6.1.0":"2021-09-26T11:01:53.697Z","6.0.0":"2021-08-26T11:21:20.550Z","5.0.0":"2020-08-11T18:44:24.748Z","4.1.0":"2019-06-17T06:20:34.221Z","4.0.0":"2019-05-12T15:28:45.148Z","3.0.0":"2018-06-18T09:19:21.364Z","2.1.0":"2016-12-02T13:21:51.615Z","2.0.0":"2016-09-20T16:13:51.109Z","1.1.2":"2016-03-05T17:45:57.070Z","1.1.1":"2016-03-02T09:24:19.277Z","1.1.0":"2015-11-14T19:05:49.453Z","1.0.0":"2015-09-01T07:15:16.509Z"},"users":{"ierceg":true,"mrzmmr":true,"bryan.ygf":true,"pmbenjamin":true,"garthk":true,"xrush":true,"alexreg":true,"soenkekluth":true,"jalcine":true,"monkbroc":true,"losymear":true,"djblue":true,"danday74":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/find-up.git"},"versions":{"8.0.0":{"name":"find-up","version":"8.0.0","description":"Find a file or directory by walking up parent directories","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/find-up.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava test/findup.js test/finddown.js && tsd"},"keywords":["find","up","find-up","findup","look-up","look","file","search","match","package","resolve","parent","parents","folder","directory","walk","walking","path"],"dependencies":{"locate-path":"^8.0.0","unicorn-magic":"^0.3.0"},"devDependencies":{"ava":"^6.4.1","is-path-inside":"^4.0.0","tempy":"^3.1.0","tsd":"^0.33.0","xo":"^1.2.2"},"xo":{"ignores":["fixture/**"],"rules":{"ava/no-import-test-files":"off","max-params":["warn",5],"unicorn/no-empty-file":"off"}},"_id":"find-up@8.0.0","gitHead":"5a009c227a484e503b78566412b1c0fd3dab3c27","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/find-up/issues"},"homepage":"https://github.com/sindresorhus/find-up#readme","_nodeVersion":"20.19.5","_npmVersion":"10.9.2","dist":{"shasum":"9e4663f9605eeb615edd7399f376a01b1de312fe","size":5086,"noattachment":false,"key":"/find-up/-/find-up-8.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up/download/find-up-8.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/find-up_8.0.0_1757985236922_0.8223885572987311"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-16T01:13:57.112Z","publish_time":1757985237112,"_source_registry_name":"default","_cnpm_publish_time":1757985237112},"7.0.0":{"name":"find-up","version":"7.0.0","description":"Find a file or directory by walking up parent directories","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/find-up.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"keywords":["find","up","find-up","findup","look-up","look","file","search","match","package","resolve","parent","parents","folder","directory","walk","walking","path"],"dependencies":{"locate-path":"^7.2.0","path-exists":"^5.0.0","unicorn-magic":"^0.1.0"},"devDependencies":{"ava":"^5.3.1","is-path-inside":"^4.0.0","tempy":"^3.1.0","tsd":"^0.29.0","xo":"^0.56.0"},"types":"./index.d.ts","gitHead":"b733bb70d3aa21b22fa011be8089110d467c317f","bugs":{"url":"https://github.com/sindresorhus/find-up/issues"},"homepage":"https://github.com/sindresorhus/find-up#readme","_id":"find-up@7.0.0","_nodeVersion":"18.18.2","_npmVersion":"9.2.0","dist":{"shasum":"e8dec1455f74f78d888ad65bf7ca13dd2b4e66fb","size":3883,"noattachment":false,"key":"/find-up/-/find-up-7.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up/download/find-up-7.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-up_7.0.0_1700137356289_0.20490634487913906"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-16T12:22:36.533Z","publish_time":1700137356533,"_source_registry_name":"default","_cnpm_publish_time":1700137356533},"6.3.0":{"name":"find-up","version":"6.3.0","description":"Find a file or directory by walking up parent directories","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/find-up.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["find","up","find-up","findup","look-up","look","file","search","match","package","resolve","parent","parents","folder","directory","walk","walking","path"],"dependencies":{"locate-path":"^7.1.0","path-exists":"^5.0.0"},"devDependencies":{"ava":"^3.15.0","is-path-inside":"^4.0.0","tempy":"^2.0.0","tsd":"^0.17.0","xo":"^0.44.0"},"types":"./index.d.ts","gitHead":"576b442b12cdec7cefb4ace23b70e2d10b8ace14","bugs":{"url":"https://github.com/sindresorhus/find-up/issues"},"homepage":"https://github.com/sindresorhus/find-up#readme","_id":"find-up@6.3.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.2","dist":{"shasum":"2abab3d3280b2dc7ac10199ef324c4e002c8c790","size":4159,"noattachment":false,"key":"/find-up/-/find-up-6.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up/download/find-up-6.3.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-up_6.3.0_1644304878041_0.12911066976937313"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-08T07:21:26.395Z","publish_time":1644304878171,"_cnpm_publish_time":1644304878171},"6.2.0":{"name":"find-up","version":"6.2.0","description":"Find a file or directory by walking up parent directories","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/find-up.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["find","up","find-up","findup","look-up","look","file","search","match","package","resolve","parent","parents","folder","directory","walk","walking","path"],"dependencies":{"locate-path":"^7.0.0","path-exists":"^5.0.0"},"devDependencies":{"ava":"^3.15.0","is-path-inside":"^4.0.0","tempy":"^2.0.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"db9962ce02553945edcfddac7d472789c86b6eb6","bugs":{"url":"https://github.com/sindresorhus/find-up/issues"},"homepage":"https://github.com/sindresorhus/find-up#readme","_id":"find-up@6.2.0","_nodeVersion":"16.10.0","_npmVersion":"7.20.3","dist":{"shasum":"f3b81d633fa83bebe64f83a8bab357f86d5914be","size":4097,"noattachment":false,"key":"/find-up/-/find-up-6.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up/download/find-up-6.2.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-up_6.2.0_1633618618109_0.5318523093873471"},"_hasShrinkwrap":false,"publish_time":1633618618251,"_cnpm_publish_time":1633618618251},"6.1.0":{"name":"find-up","version":"6.1.0","description":"Find a file or directory by walking up parent directories","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/find-up.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["find","up","find-up","findup","look-up","look","file","search","match","package","resolve","parent","parents","folder","directory","walk","walking","path"],"dependencies":{"locate-path":"^7.0.0","path-exists":"^5.0.0"},"devDependencies":{"ava":"^3.15.0","is-path-inside":"^4.0.0","tempy":"^2.0.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"d3a3cfc92324904348f921e97ef424189645dd63","bugs":{"url":"https://github.com/sindresorhus/find-up/issues"},"homepage":"https://github.com/sindresorhus/find-up#readme","_id":"find-up@6.1.0","_nodeVersion":"16.9.1","_npmVersion":"7.20.3","dist":{"shasum":"96009919bff6cfba2bad6ceb5520c26082ecf370","size":3742,"noattachment":false,"key":"/find-up/-/find-up-6.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up/download/find-up-6.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-up_6.1.0_1632654113545_0.09908885893458863"},"_hasShrinkwrap":false,"publish_time":1632654113697,"_cnpm_publish_time":1632654113697},"6.0.0":{"name":"find-up","version":"6.0.0","description":"Find a file or directory by walking up parent directories","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/find-up.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["find","up","find-up","findup","look-up","look","file","search","match","package","resolve","parent","parents","folder","directory","walk","walking","path"],"dependencies":{"locate-path":"^7.0.0","path-exists":"^5.0.0"},"devDependencies":{"ava":"^3.15.0","is-path-inside":"^4.0.0","tempy":"^2.0.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"ace3d10aadce889a78924954a2766af81eb315ff","bugs":{"url":"https://github.com/sindresorhus/find-up/issues"},"homepage":"https://github.com/sindresorhus/find-up#readme","_id":"find-up@6.0.0","_nodeVersion":"16.7.0","_npmVersion":"7.20.3","dist":{"shasum":"7e321c34ecfea17dfffc4d78017bb025b9dfff71","size":3612,"noattachment":false,"key":"/find-up/-/find-up-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up/download/find-up-6.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-up_6.0.0_1629976880383_0.6096402327348933"},"_hasShrinkwrap":false,"publish_time":1629976880550,"_cnpm_publish_time":1629976880550},"5.0.0":{"name":"find-up","version":"5.0.0","description":"Find a file or directory by walking up parent directories","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/find-up.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["find","up","find-up","findup","look-up","look","file","search","match","package","resolve","parent","parents","folder","directory","walk","walking","path"],"dependencies":{"locate-path":"^6.0.0","path-exists":"^4.0.0"},"devDependencies":{"ava":"^2.1.0","is-path-inside":"^2.1.0","tempy":"^0.6.0","tsd":"^0.13.1","xo":"^0.33.0"},"gitHead":"e852e9cfd020844fac0ea2ff073c378cc302db4d","bugs":{"url":"https://github.com/sindresorhus/find-up/issues"},"homepage":"https://github.com/sindresorhus/find-up#readme","_id":"find-up@5.0.0","_nodeVersion":"14.5.0","_npmVersion":"6.14.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4c92819ecb7083561e4f4a240a86be5198f536fc","size":3806,"noattachment":false,"key":"/find-up/-/find-up-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up/download/find-up-5.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-up_5.0.0_1597171464642_0.13015534581818233"},"_hasShrinkwrap":false,"publish_time":1597171464748,"_cnpm_publish_time":1597171464748},"4.1.0":{"name":"find-up","version":"4.1.0","description":"Find a file or directory by walking up parent directories","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/find-up.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["find","up","find-up","findup","look-up","look","file","search","match","package","resolve","parent","parents","folder","directory","walk","walking","path"],"dependencies":{"locate-path":"^5.0.0","path-exists":"^4.0.0"},"devDependencies":{"ava":"^2.1.0","is-path-inside":"^2.1.0","tempy":"^0.3.0","tsd":"^0.7.3","xo":"^0.24.0"},"gitHead":"6c32f0caed1684ef778053b6f79b13a772e22ba4","bugs":{"url":"https://github.com/sindresorhus/find-up/issues"},"homepage":"https://github.com/sindresorhus/find-up#readme","_id":"find-up@4.1.0","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19","size":3745,"noattachment":false,"key":"/find-up/-/find-up-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up/download/find-up-4.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-up_4.1.0_1560752434049_0.7412163695841496"},"_hasShrinkwrap":false,"publish_time":1560752434221,"_cnpm_publish_time":1560752434221},"4.0.0":{"name":"find-up","version":"4.0.0","description":"Find a file or directory by walking up parent directories","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/find-up.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["find","up","find-up","findup","look-up","look","file","search","match","package","resolve","parent","parents","folder","directory","walk","walking","path"],"dependencies":{"locate-path":"^5.0.0"},"devDependencies":{"ava":"^1.4.1","is-path-inside":"^2.1.0","tempy":"^0.3.0","tsd":"^0.7.3","xo":"^0.24.0"},"gitHead":"a2841237562d1f9996084d16c1bc6b471143892a","bugs":{"url":"https://github.com/sindresorhus/find-up/issues"},"homepage":"https://github.com/sindresorhus/find-up#readme","_id":"find-up@4.0.0","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"c367f8024de92efb75f2d4906536d24682065c3a","size":3671,"noattachment":false,"key":"/find-up/-/find-up-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up/download/find-up-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-up_4.0.0_1557674925044_0.058754120668220944"},"_hasShrinkwrap":false,"publish_time":1557674925148,"_cnpm_publish_time":1557674925148},"3.0.0":{"name":"find-up","version":"3.0.0","description":"Find a file or directory by walking up parent directories","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/find-up.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["find","up","find-up","findup","look-up","look","file","search","match","package","resolve","parent","parents","folder","directory","dir","walk","walking","path"],"dependencies":{"locate-path":"^3.0.0"},"devDependencies":{"ava":"*","tempy":"^0.2.1","xo":"*"},"gitHead":"2319b79a9e728fc13fc1a1a15e84bf5df100719e","bugs":{"url":"https://github.com/sindresorhus/find-up/issues"},"homepage":"https://github.com/sindresorhus/find-up#readme","_id":"find-up@3.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"49169f1d7993430646da61ecc5ae355c21c97b73","size":2271,"noattachment":false,"key":"/find-up/-/find-up-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up/download/find-up-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-up_3.0.0_1529313561272_0.9299595096856903"},"_hasShrinkwrap":false,"publish_time":1529313561364,"_cnpm_publish_time":1529313561364},"2.1.0":{"name":"find-up","version":"2.1.0","description":"Find a file by walking up parent directories","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/find-up.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["find","up","find-up","findup","look-up","look","file","search","match","package","resolve","parent","parents","folder","directory","dir","walk","walking","path"],"dependencies":{"locate-path":"^2.0.0"},"devDependencies":{"ava":"*","tempfile":"^1.1.1","xo":"*"},"xo":{"esnext":true},"gitHead":"10202fb1621f0c277d5d5eeaf01c1c32b008fbef","bugs":{"url":"https://github.com/sindresorhus/find-up/issues"},"homepage":"https://github.com/sindresorhus/find-up#readme","_id":"find-up@2.1.0","_shasum":"45d1b7e506c717ddd482775a2b77920a3c0c57a7","_from":".","_npmVersion":"4.0.2","_nodeVersion":"6.9.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"45d1b7e506c717ddd482775a2b77920a3c0c57a7","size":2234,"noattachment":false,"key":"/find-up/-/find-up-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up/download/find-up-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/find-up-2.1.0.tgz_1480684911017_0.33125952794216573"},"directories":{},"publish_time":1480684911615,"_cnpm_publish_time":1480684911615,"_hasShrinkwrap":false},"2.0.0":{"name":"find-up","version":"2.0.0","description":"Find a file by walking up parent directories","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/find-up.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["find","up","find-up","findup","look-up","look","file","search","match","package","resolve","parent","parents","folder","directory","dir","walk","walking","path"],"dependencies":{"path-exists":"^2.0.0"},"devDependencies":{"ava":"*","tempfile":"^1.1.1","xo":"*"},"xo":{"esnext":true},"gitHead":"80342293c547b6982091f6ff141a76fd70317f57","bugs":{"url":"https://github.com/sindresorhus/find-up/issues"},"homepage":"https://github.com/sindresorhus/find-up#readme","_id":"find-up@2.0.0","_shasum":"71e6dc2dad9222143cfc0fa5de7ab739e7320c05","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"71e6dc2dad9222143cfc0fa5de7ab739e7320c05","size":2146,"noattachment":false,"key":"/find-up/-/find-up-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up/download/find-up-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/find-up-2.0.0.tgz_1474388027708_0.42646232759580016"},"directories":{},"publish_time":1474388031109,"_cnpm_publish_time":1474388031109,"_hasShrinkwrap":false},"1.1.2":{"name":"find-up","version":"1.1.2","description":"Find a file by walking up parent directories","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/find-up"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["find","up","find-up","findup","look-up","look","file","search","match","package","resolve","parent","parents","folder","directory","dir","walk","walking","path"],"dependencies":{"path-exists":"^2.0.0","pinkie-promise":"^2.0.0"},"devDependencies":{"ava":"*","tempfile":"^1.1.1","xo":"*"},"gitHead":"f2d7c1ff74fbac82b2cff038e311ef4b075d9184","bugs":{"url":"https://github.com/sindresorhus/find-up/issues"},"homepage":"https://github.com/sindresorhus/find-up","_id":"find-up@1.1.2","_shasum":"6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f","size":2060,"noattachment":false,"key":"/find-up/-/find-up-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up/download/find-up-1.1.2.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/find-up-1.1.2.tgz_1457199955637_0.3445317060686648"},"directories":{},"publish_time":1457199957070,"_cnpm_publish_time":1457199957070,"_hasShrinkwrap":false},"1.1.1":{"name":"find-up","version":"1.1.1","description":"Find a file by walking up parent directories","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/find-up"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["find","up","find-up","findup","look-up","look","file","search","match","package","resolve","parent","parents","folder","directory","dir","walk","walking","path"],"dependencies":{"path-exists":"^2.0.0","pinkie-promise":"^2.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"bc536485bfddd2d960f472964e65afef9895f475","bugs":{"url":"https://github.com/sindresorhus/find-up/issues"},"homepage":"https://github.com/sindresorhus/find-up","_id":"find-up@1.1.1","_shasum":"53bdfb982c41e97ba7f64173d239b406cfd79f85","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"53bdfb982c41e97ba7f64173d239b406cfd79f85","size":2064,"noattachment":false,"key":"/find-up/-/find-up-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up/download/find-up-1.1.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/find-up-1.1.1.tgz_1456910658734_0.6790364829357713"},"directories":{},"publish_time":1456910659277,"_cnpm_publish_time":1456910659277,"_hasShrinkwrap":false},"1.1.0":{"name":"find-up","version":"1.1.0","description":"Find a file by walking up parent directories","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/find-up"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["find","up","find-up","findup","look-up","look","file","search","match","package","resolve","parent","parents","folder","directory","dir","walk","walking","path"],"dependencies":{"path-exists":"^2.0.0","pinkie-promise":"^2.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"06e9dae73659ddf2421440ca4695161c38d7d2fb","bugs":{"url":"https://github.com/sindresorhus/find-up/issues"},"homepage":"https://github.com/sindresorhus/find-up","_id":"find-up@1.1.0","_shasum":"a63b0eec4625a2902534898a5f9eec8aaed046e9","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"a63b0eec4625a2902534898a5f9eec8aaed046e9","size":2065,"noattachment":false,"key":"/find-up/-/find-up-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up/download/find-up-1.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1447527949453,"_cnpm_publish_time":1447527949453,"_hasShrinkwrap":false},"1.0.0":{"name":"find-up","version":"1.0.0","description":"Find a file by walking up parent directories","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/find-up"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["find","up","find-up","findup","look-up","look","file","search","match","package","resolve","parent","parents","folder","directory","dir","walk","walking","path"],"dependencies":{"path-exists":"^2.0.0","pinkie-promise":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"9bf0f46fd04d04902cc4934f418ca49cdf199d83","bugs":{"url":"https://github.com/sindresorhus/find-up/issues"},"homepage":"https://github.com/sindresorhus/find-up","_id":"find-up@1.0.0","_shasum":"df0a54abeebdf9984168fa556bd18a8f24b4d15c","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"df0a54abeebdf9984168fa556bd18a8f24b4d15c","size":2031,"noattachment":false,"key":"/find-up/-/find-up-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-up/download/find-up-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1441091716509,"_cnpm_publish_time":1441091716509,"_hasShrinkwrap":false}},"readme":"# find-up\n\n> Find a file or directory by walking up parent directories or down descendant directories\n\n## Install\n\n```sh\nnpm install find-up\n```\n\n## Usage\n\n```\n/\n└── Users\n    └── sindresorhus\n        ├── unicorn.png\n        └── foo\n            └── bar\n                ├── baz\n                └── example.js\n```\n\n`example.js`\n\n```js\nimport path from 'node:path';\nimport {pathExists} from 'path-exists';\nimport {findUp, findDown} from 'find-up';\n\nconsole.log(await findUp('unicorn.png'));\n//=> '/Users/sindresorhus/unicorn.png'\n\nconsole.log(await findUp(['rainbow.png', 'unicorn.png']));\n//=> '/Users/sindresorhus/unicorn.png'\n\nconsole.log(await findUp(async directory => {\n\tconst hasUnicorn = await pathExists(path.join(directory, 'unicorn.png'));\n\treturn hasUnicorn && directory;\n}, {type: 'directory'}));\n//=> '/Users/sindresorhus'\n\n// Find .git (could be a file or directory, common in submodules)\nconsole.log(await findUp('.git', {type: 'both'}));\n//=> '/Users/sindresorhus/.git'\n```\n\n## API\n\n### findUp(name, options?)\n### findUp(matcher, options?)\n\nReturns a `Promise` for either the path or `undefined` if it could not be found.\n\n### findUp([...name], options?)\n\nReturns a `Promise` for either the first path found (by respecting the order of names) or `undefined` if none could be found.\n\n### findUpMultiple(name, options?)\n### findUpMultiple(matcher, options?)\n\nReturns a `Promise` for either an array of all paths found or an empty array if none could be found.\n\n**Note:** You can limit the number of matches by setting the `limit` option.\n\n### findUpMultiple([...name], options?)\n\nReturns a `Promise` for either an array of all paths found (by respecting the order of names) or an empty array if none could be found.\n\n**Note:** You can limit the number of matches by setting the `limit` option.\n\n### findUpSync(name, options?)\n### findUpSync(matcher, options?)\n\nReturns a path or `undefined` if it could not be found.\n\n### findUpSync([...name], options?)\n\nReturns the first path found (by respecting the order of names) or `undefined` if none could be found.\n\n### findUpMultipleSync(name, options?)\n### findUpMultipleSync(matcher, options?)\n\nReturns an array of all paths found or an empty array if none could be found.\n\n### findUpMultipleSync([...name], options?)\n\nReturns an array of all paths found (by respecting the order of names) or an empty array if none could be found.\n\n**Note:** You can limit the number of matches by setting the `limit` option.\n\n### findDown(name, options?)\n### findDown([...name], options?)\n\nFind a file or directory by walking down descendant directories from `cwd`.\n\nReturns a `Promise` for either the path or `undefined` if it could not be found.\n\n```js\nimport {findUp, findDown} from 'find-up';\n\n// Find the nearest parent directory that contains a specific file\n// in its direct children (useful for monorepo roots)\nconsole.log(await findUp(async directory => {\n\treturn findDown('example.js', {cwd: directory, depth: 1});\n}));\n//=> '/Users/sindresorhus/foo'\n```\n\n### findDownSync(name, options?)\n### findDownSync([...name], options?)\n\nSynchronous version of `findDown`.\n\nReturns the path or `undefined` if it could not be found.\n\n#### name\n\nType: `string`\n\nThe name of the file or directory to find. Can be an array of names to search for multiple files.\n\n#### matcher\n\nType: `Function`\n\nCalled for each directory in the search. Return a path or `findUpStop` to stop the search. Useful if you want to match files with certain patterns, set of permissions, or other advanced use-cases.\n\n#### options\n\nType: `object`\n\n##### cwd\n\nType: `URL | string`\\\nDefault: `process.cwd()`\n\nThe directory to start from.\n\n##### type\n\nType: `string`\\\nDefault: `'file'`\\\nValues: `'file' | 'directory' | 'both'`\n\nThe type of path to match.\n\n##### allowSymlinks\n\nType: `boolean`\\\nDefault: `true`\n\nAllow symbolic links to match if they point to the chosen path type.\n\n##### stopAt\n\n*Only for `findUp` functions*\n\nType: `URL | string`\\\nDefault: Root directory\n\nA directory path where the search halts if no matches are found before reaching this point.\n\n##### limit\n\n*Only for `findUpMultiple` and `findUpMultipleSync`*\n\nType: `number`\\\nDefault: `Infinity`\n\nThe maximum number of matches to return. Useful for limiting results when searching for multiple files.\n\n### findUpStop\n\nA [`Symbol`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol) that can be returned by a `matcher` function to stop the search and cause `findUp` to immediately return `undefined`. Useful as a performance optimization in case the current working directory is deeply nested in the filesystem.\n\n```js\nimport path from 'node:path';\nimport {findUp, findUpStop} from 'find-up';\n\nawait findUp(directory => {\n\t// Stop searching if we've reached a 'work' directory\n\tif (path.basename(directory) === 'work') {\n\t\treturn findUpStop;\n\t}\n\n\t// Look for package.json in this directory\n\treturn 'package.json';\n});\n```\n\n### findDown options\n\nType: `object`\n\n##### cwd\n\nType: `URL | string`\\\nDefault: `process.cwd()`\n\nThe directory to start from.\n\n##### depth\n\nType: `number`\\\nDefault: `1`\n\nMaximum number of directory levels to traverse below `cwd`.\n\n##### type\n\nType: `string`\\\nDefault: `'file'`\\\nValues: `'file' | 'directory' | 'both'`\n\nThe type of path to match.\n\n##### allowSymlinks\n\nType: `boolean`\\\nDefault: `true`\n\nAllow symbolic links to match if they point to the chosen path type.\n\n##### strategy\n\nType: `string`\\\nDefault: `'breadth'`\\\nValues: `'breadth' | 'depth'`\n\nSearch strategy to use:\n- `'breadth'`: Breadth-first search, finds shallower matches first.\n- `'depth'`: Depth-first search, fully explores each branch before moving to the next.\n\n## Related\n\n- [find-up-cli](https://github.com/sindresorhus/find-up-cli) - CLI for this module\n- [package-up](https://github.com/sindresorhus/package-up) - Find the closest package.json file\n- [package-directory](https://github.com/sindresorhus/package-directory) - Find the root directory of an npm package\n- [resolve-from](https://github.com/sindresorhus/resolve-from) - Resolve the path of a module like `require.resolve()` but from a given path\n","_attachments":{},"homepage":"https://github.com/sindresorhus/find-up#readme","bugs":{"url":"https://github.com/sindresorhus/find-up/issues"},"license":"MIT"}