{"_id":"locate-path","_rev":"4063351","name":"locate-path","description":"Get the first path that exists on disk of multiple paths","dist-tags":{"latest":"8.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2025-09-24T04:26:41.000Z","created":"2016-11-20T10:27:29.562Z","8.0.0":"2025-09-15T23:17:38.813Z","7.2.0":"2023-02-09T08:29:51.700Z","7.1.1":"2022-06-06T02:56:04.260Z","7.1.0":"2022-02-08T06:30:33.830Z","7.0.0":"2021-08-25T12:46:43.621Z","6.0.0":"2020-08-10T17:49:10.766Z","5.0.0":"2019-05-04T13:00:07.428Z","4.0.0":"2019-04-15T15:56:42.988Z","3.0.0":"2018-06-17T20:59:26.704Z","2.0.0":"2016-11-28T05:27:33.711Z","1.1.0":"2016-11-20T13:20:48.318Z","1.0.0":"2016-11-20T10:27:29.562Z"},"users":{"aretecode":true,"danielbayley":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/locate-path.git"},"versions":{"8.0.0":{"name":"locate-path","version":"8.0.0","description":"Get the first path that exists on disk of multiple paths","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/locate-path.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 && tsd"},"keywords":["locate","path","paths","file","files","exists","find","finder","search","searcher","array","iterable","iterator"],"dependencies":{"p-locate":"^6.0.0"},"devDependencies":{"ava":"^6.4.1","tsd":"^0.33.0","xo":"^1.2.2"},"_id":"locate-path@8.0.0","gitHead":"4c4ee027b830c35ff7605421a8ad92208f1b868a","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/locate-path/issues"},"homepage":"https://github.com/sindresorhus/locate-path#readme","_nodeVersion":"20.19.5","_npmVersion":"10.9.2","dist":{"shasum":"4f0cca3d0d84b02b6f534a73331c83437bf14141","size":2786,"noattachment":false,"key":"/locate-path/-/locate-path-8.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/locate-path/download/locate-path-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/locate-path_8.0.0_1757978258616_0.17471298544212033"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-15T23:17:38.813Z","publish_time":1757978258813,"_source_registry_name":"default","_cnpm_publish_time":1757978258813},"7.2.0":{"name":"locate-path","version":"7.2.0","description":"Get the first path that exists on disk of multiple paths","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/locate-path.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":["locate","path","paths","file","files","exists","find","finder","search","searcher","array","iterable","iterator"],"dependencies":{"p-locate":"^6.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"types":"./index.d.ts","gitHead":"355a681456d79a8506de11120d56b6e34a0389b5","bugs":{"url":"https://github.com/sindresorhus/locate-path/issues"},"homepage":"https://github.com/sindresorhus/locate-path#readme","_id":"locate-path@7.2.0","_nodeVersion":"14.21.1","_npmVersion":"9.2.0","dist":{"shasum":"69cb1779bd90b35ab1e771e1f2f89a202c2a8a8a","size":2903,"noattachment":false,"key":"/locate-path/-/locate-path-7.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/locate-path/download/locate-path-7.2.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/locate-path_7.2.0_1675931391521_0.6232746209558382"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-09T08:29:51.700Z","publish_time":1675931391700,"_cnpm_publish_time":1675931391700},"7.1.1":{"name":"locate-path","version":"7.1.1","description":"Get the first path that exists on disk of multiple paths","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/locate-path.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":["locate","path","paths","file","files","exists","find","finder","search","searcher","array","iterable","iterator"],"dependencies":{"p-locate":"^6.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"types":"./index.d.ts","gitHead":"4a5368c38e808a62d86010950e6c1ff2d856b05b","bugs":{"url":"https://github.com/sindresorhus/locate-path/issues"},"homepage":"https://github.com/sindresorhus/locate-path#readme","_id":"locate-path@7.1.1","_nodeVersion":"14.19.2","_npmVersion":"8.3.2","dist":{"shasum":"8e1e5a75c7343770cef02ff93c4bf1f0aa666374","size":2869,"noattachment":false,"key":"/locate-path/-/locate-path-7.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/locate-path/download/locate-path-7.1.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/locate-path_7.1.1_1654484164086_0.9476282177943742"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-06T03:03:53.335Z","publish_time":1654484164260,"_cnpm_publish_time":1654484164260},"7.1.0":{"name":"locate-path","version":"7.1.0","description":"Get the first path that exists on disk of multiple paths","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/locate-path.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":["locate","path","paths","file","files","exists","find","finder","search","searcher","array","iterable","iterator"],"dependencies":{"p-locate":"^6.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"types":"./index.d.ts","gitHead":"42df341fcd05f6af53f508a96a9fd826cfafa575","bugs":{"url":"https://github.com/sindresorhus/locate-path/issues"},"homepage":"https://github.com/sindresorhus/locate-path#readme","_id":"locate-path@7.1.0","_nodeVersion":"16.13.1","_npmVersion":"8.3.2","dist":{"shasum":"241d62af60739f6097c055efe10329c88b798425","size":2861,"noattachment":false,"key":"/locate-path/-/locate-path-7.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/locate-path/download/locate-path-7.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/locate-path_7.1.0_1644301833685_0.6324694567378937"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-08T06:30:39.680Z","publish_time":1644301833830,"_cnpm_publish_time":1644301833830},"7.0.0":{"name":"locate-path","version":"7.0.0","description":"Get the first path that exists on disk of multiple paths","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/locate-path.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":["locate","path","paths","file","files","exists","find","finder","search","searcher","array","iterable","iterator"],"dependencies":{"p-locate":"^6.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"74aba6bd8b7a1ca1b2e8766c697f2ec5cc1b9bf1","bugs":{"url":"https://github.com/sindresorhus/locate-path/issues"},"homepage":"https://github.com/sindresorhus/locate-path#readme","_id":"locate-path@7.0.0","_nodeVersion":"16.7.0","_npmVersion":"7.20.3","dist":{"shasum":"f0a60c8dd7ef0f737699eb9461b9567a92bc97da","size":2800,"noattachment":false,"key":"/locate-path/-/locate-path-7.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/locate-path/download/locate-path-7.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/locate-path_7.0.0_1629895603416_0.9802738678936131"},"_hasShrinkwrap":false,"publish_time":1629895603621,"_cnpm_publish_time":1629895603621},"6.0.0":{"name":"locate-path","version":"6.0.0","description":"Get the first path that exists on disk of multiple paths","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/locate-path.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":["locate","path","paths","file","files","exists","find","finder","search","searcher","array","iterable","iterator"],"dependencies":{"p-locate":"^5.0.0"},"devDependencies":{"ava":"^2.4.0","tsd":"^0.13.1","xo":"^0.32.1"},"gitHead":"3f2dd51787dd7fe22658af7ab817ec542de93b1b","bugs":{"url":"https://github.com/sindresorhus/locate-path/issues"},"homepage":"https://github.com/sindresorhus/locate-path#readme","_id":"locate-path@6.0.0","_nodeVersion":"14.5.0","_npmVersion":"6.14.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"55321eb309febbc59c4801d931a72452a681d286","size":2954,"noattachment":false,"key":"/locate-path/-/locate-path-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/locate-path/download/locate-path-6.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/locate-path_6.0.0_1597081750688_0.7564472004669758"},"_hasShrinkwrap":false,"publish_time":1597081750766,"_cnpm_publish_time":1597081750766},"5.0.0":{"name":"locate-path","version":"5.0.0","description":"Get the first path that exists on disk of multiple paths","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/locate-path.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["locate","path","paths","file","files","exists","find","finder","search","searcher","array","iterable","iterator"],"dependencies":{"p-locate":"^4.1.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"630c0bbd609055c1895089c715649e21000a1ab7","bugs":{"url":"https://github.com/sindresorhus/locate-path/issues"},"homepage":"https://github.com/sindresorhus/locate-path#readme","_id":"locate-path@5.0.0","_nodeVersion":"8.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"1afba396afd676a6d42504d0a67a3a7eb9f62aa0","size":2723,"noattachment":false,"key":"/locate-path/-/locate-path-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/locate-path/download/locate-path-5.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/locate-path_5.0.0_1556974807265_0.2598589421080095"},"_hasShrinkwrap":false,"publish_time":1556974807428,"_cnpm_publish_time":1556974807428},"4.0.0":{"name":"locate-path","version":"4.0.0","description":"Get the first path that exists on disk of multiple paths","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/locate-path.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["locate","path","paths","file","files","exists","find","finder","search","searcher","array","iterable","iterator"],"dependencies":{"p-locate":"^4.1.0","path-exists":"^4.0.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"ca633cfe3fd4826a7b20dea83f92a152197947fb","bugs":{"url":"https://github.com/sindresorhus/locate-path/issues"},"homepage":"https://github.com/sindresorhus/locate-path#readme","_id":"locate-path@4.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"c52693fa4f3222cd306ba5302e7250bf9b94d05d","size":2301,"noattachment":false,"key":"/locate-path/-/locate-path-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/locate-path/download/locate-path-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/locate-path_4.0.0_1555343802859_0.6905435600537719"},"_hasShrinkwrap":false,"publish_time":1555343802988,"_cnpm_publish_time":1555343802988},"3.0.0":{"name":"locate-path","version":"3.0.0","description":"Get the first path that exists on disk of multiple paths","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/locate-path.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["locate","path","paths","file","files","exists","find","finder","search","searcher","array","iterable","iterator"],"dependencies":{"p-locate":"^3.0.0","path-exists":"^3.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"d6f19ffa31544161ee94118963deb3b683418151","bugs":{"url":"https://github.com/sindresorhus/locate-path/issues"},"homepage":"https://github.com/sindresorhus/locate-path#readme","_id":"locate-path@3.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"dbec3b3ab759758071b58fe59fc41871af21400e","size":1957,"noattachment":false,"key":"/locate-path/-/locate-path-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/locate-path/download/locate-path-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/locate-path_3.0.0_1529269166609_0.06080172995584565"},"_hasShrinkwrap":false,"publish_time":1529269166704,"_cnpm_publish_time":1529269166704},"2.0.0":{"name":"locate-path","version":"2.0.0","description":"Get the first path that exists on disk of multiple paths","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/locate-path.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["locate","path","paths","file","files","exists","find","finder","search","searcher","array","iterable","iterator"],"dependencies":{"p-locate":"^2.0.0","path-exists":"^3.0.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"a30b86df0934329c66ff6a2be395db03d65478b8","bugs":{"url":"https://github.com/sindresorhus/locate-path/issues"},"homepage":"https://github.com/sindresorhus/locate-path#readme","_id":"locate-path@2.0.0","_shasum":"2b568b265eec944c6d9c0de9c3dbbbca0354cd8e","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.2.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"2b568b265eec944c6d9c0de9c3dbbbca0354cd8e","size":2019,"noattachment":false,"key":"/locate-path/-/locate-path-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/locate-path/download/locate-path-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/locate-path-2.0.0.tgz_1480310853492_0.9661909360438585"},"directories":{},"publish_time":1480310853711,"_cnpm_publish_time":1480310853711,"_hasShrinkwrap":false},"1.1.0":{"name":"locate-path","version":"1.1.0","description":"Get the first path that exists on disk of multiple paths","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/locate-path.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["locate","path","paths","file","files","exists","find","finder","search","searcher","array","iterable","iterator"],"dependencies":{"p-locate":"^1.0.0","path-exists":"^3.0.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"d8ffb20e1aa08e382e61a95e4aa1aae66dcafb0d","bugs":{"url":"https://github.com/sindresorhus/locate-path/issues"},"homepage":"https://github.com/sindresorhus/locate-path#readme","_id":"locate-path@1.1.0","_shasum":"bef5eea5d511d2e7438dfeedfc6af8ce6a4dd811","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.6.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"bef5eea5d511d2e7438dfeedfc6af8ce6a4dd811","size":1959,"noattachment":false,"key":"/locate-path/-/locate-path-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/locate-path/download/locate-path-1.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/locate-path-1.1.0.tgz_1479648048095_0.9578655750956386"},"directories":{},"publish_time":1479648048318,"_cnpm_publish_time":1479648048318,"_hasShrinkwrap":false},"1.0.0":{"name":"locate-path","version":"1.0.0","description":"Get the first path that exists on disk of multiple paths","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/locate-path.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["locate","path","paths","file","files","exists","find","finder","search","searcher","array","iterable","iterator"],"dependencies":{"p-locate":"^1.0.0","path-exists":"^3.0.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"53677e8b93f38e84061d131d3d9455a3509bfa58","bugs":{"url":"https://github.com/sindresorhus/locate-path/issues"},"homepage":"https://github.com/sindresorhus/locate-path#readme","_id":"locate-path@1.0.0","_shasum":"cacf3ab8bb8a3dee6e7f011d0c850f5d516fea1a","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.6.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"cacf3ab8bb8a3dee6e7f011d0c850f5d516fea1a","size":1870,"noattachment":false,"key":"/locate-path/-/locate-path-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/locate-path/download/locate-path-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/locate-path-1.0.0.tgz_1479637649308_0.8211715335492045"},"directories":{},"publish_time":1479637649562,"_cnpm_publish_time":1479637649562,"_hasShrinkwrap":false}},"readme":"# locate-path\n\n> Get the first path that exists on disk of multiple paths\n\n## Install\n\n```sh\nnpm install locate-path\n```\n\n## Usage\n\nHere we find the first file that exists on disk, in array order.\n\n```js\nimport {locatePath} from 'locate-path';\n\nconst files = [\n\t'unicorn.png',\n\t'rainbow.png', // Only this one actually exists on disk\n\t'pony.png'\n];\n\nconsole.log(await locatePath(files));\n//=> 'rainbow.png'\n```\n\n## API\n\n### locatePath(paths, options?)\n\nReturns a `Promise<string>` for the first path that exists or `undefined` if none exists.\n\n#### paths\n\nType: `Iterable<string>`\n\nThe paths to check.\n\n#### options\n\nType: `object`\n\n##### concurrency\n\nType: `number`\\\nDefault: `Infinity`\\\nMinimum: `1`\n\nThe number of concurrently pending promises.\n\n##### preserveOrder\n\nType: `boolean`\\\nDefault: `true`\n\nPreserve `paths` order when searching.\n\nDisable this to improve performance if you don't care about the order.\n\n##### cwd\n\nType: `URL | string`\\\nDefault: `process.cwd()`\n\nThe current working directory.\n\n##### type\n\nType: `string`\\\nDefault: `'file'`\\\nValues: `'file' | 'directory' | 'both'`\n\nThe type of path to match.\n\n- `'file'` - Only match files\n- `'directory'` - Only match directories\n- `'both'` - Match both files and directories\n\n##### allowSymlinks\n\nType: `boolean`\\\nDefault: `true`\n\nAllow symbolic links to match if they point to the chosen path type.\n\n### locatePathSync(paths, options?)\n\nReturns the first path that exists or `undefined` if none exists.\n\n#### paths\n\nType: `Iterable<string>`\n\nThe paths to check.\n\n#### options\n\nType: `object`\n\n##### cwd\n\nSame as above.\n\n##### type\n\nSame as above.\n\n##### allowSymlinks\n\nSame as above.\n\n## Related\n\n- [path-exists](https://github.com/sindresorhus/path-exists) - Check if a path exists\n","_attachments":{},"homepage":"https://github.com/sindresorhus/locate-path#readme","bugs":{"url":"https://github.com/sindresorhus/locate-path/issues"},"license":"MIT"}