Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/p-locate.json

raw
1 {
2 "_id": "p-locate",
3 "_rev": "7-bc370f2549965c33877f9ea698798304",
4 "name": "p-locate",
5 "description": "Get the first fulfilled promise that satisfies the provided testing function",
6 "dist-tags": {
7 "latest": "5.0.0"
8 },
9 "versions": {
10 "1.0.0": {
11 "name": "p-locate",
12 "version": "1.0.0",
13 "description": "Get the first fulfilled promise that satisfies the provided testing function",
14 "license": "MIT",
15 "repository": {
16 "type": "git",
17 "url": "git+https://github.com/sindresorhus/p-locate.git"
18 },
19 "author": {
20 "name": "Sindre Sorhus",
21 "email": "[email protected]",
22 "url": "sindresorhus.com"
23 },
24 "engines": {
25 "node": ">=4"
26 },
27 "scripts": {
28 "test": "xo && ava"
29 },
30 "files": [
31 "index.js"
32 ],
33 "keywords": [
34 "promise",
35 "locate",
36 "find",
37 "finder",
38 "search",
39 "searcher",
40 "test",
41 "array",
42 "collection",
43 "iterable",
44 "iterator",
45 "race",
46 "fulfilled",
47 "fastest",
48 "async",
49 "await",
50 "promises",
51 "bluebird"
52 ],
53 "dependencies": {
54 "p-map": "^1.1.0"
55 },
56 "devDependencies": {
57 "ava": "*",
58 "delay": "^1.3.1",
59 "in-range": "^1.0.0",
60 "time-span": "^1.0.0",
61 "xo": "*"
62 },
63 "xo": {
64 "esnext": true
65 },
66 "gitHead": "3950c4990ccb06fd7846255fa8570dda3efaa153",
67 "bugs": {
68 "url": "https://github.com/sindresorhus/p-locate/issues"
69 },
70 "homepage": "https://github.com/sindresorhus/p-locate#readme",
71 "_id": "[email protected]",
72 "_shasum": "0741476fe43666849508fd0b125778982de716aa",
73 "_from": ".",
74 "_npmVersion": "2.15.11",
75 "_nodeVersion": "4.6.2",
76 "_npmUser": {
77 "name": "sindresorhus",
78 "email": "[email protected]"
79 },
80 "dist": {
81 "shasum": "0741476fe43666849508fd0b125778982de716aa",
82 "tarball": "https://registry.npmjs.org/p-locate/-/p-locate-1.0.0.tgz"
83 },
84 "maintainers": [
85 {
86 "name": "sindresorhus",
87 "email": "[email protected]"
88 }
89 ],
90 "_npmOperationalInternal": {
91 "host": "packages-12-west.internal.npmjs.com",
92 "tmp": "tmp/p-locate-1.0.0.tgz_1479636453993_0.39431346161291003"
93 },
94 "directories": {}
95 },
96 "2.0.0": {
97 "name": "p-locate",
98 "version": "2.0.0",
99 "description": "Get the first fulfilled promise that satisfies the provided testing function",
100 "license": "MIT",
101 "repository": {
102 "type": "git",
103 "url": "git+https://github.com/sindresorhus/p-locate.git"
104 },
105 "author": {
106 "name": "Sindre Sorhus",
107 "email": "[email protected]",
108 "url": "sindresorhus.com"
109 },
110 "engines": {
111 "node": ">=4"
112 },
113 "scripts": {
114 "test": "xo && ava"
115 },
116 "files": [
117 "index.js"
118 ],
119 "keywords": [
120 "promise",
121 "locate",
122 "find",
123 "finder",
124 "search",
125 "searcher",
126 "test",
127 "array",
128 "collection",
129 "iterable",
130 "iterator",
131 "race",
132 "fulfilled",
133 "fastest",
134 "async",
135 "await",
136 "promises",
137 "bluebird"
138 ],
139 "dependencies": {
140 "p-limit": "^1.1.0"
141 },
142 "devDependencies": {
143 "ava": "*",
144 "delay": "^1.3.1",
145 "in-range": "^1.0.0",
146 "time-span": "^1.0.0",
147 "xo": "*"
148 },
149 "xo": {
150 "esnext": true
151 },
152 "gitHead": "6300abb6451f04bbaa760f42844ec1c501d79120",
153 "bugs": {
154 "url": "https://github.com/sindresorhus/p-locate/issues"
155 },
156 "homepage": "https://github.com/sindresorhus/p-locate#readme",
157 "_id": "[email protected]",
158 "_shasum": "20a0103b222a70c8fd39cc2e580680f3dde5ec43",
159 "_from": ".",
160 "_npmVersion": "3.10.9",
161 "_nodeVersion": "7.2.0",
162 "_npmUser": {
163 "name": "sindresorhus",
164 "email": "[email protected]"
165 },
166 "dist": {
167 "shasum": "20a0103b222a70c8fd39cc2e580680f3dde5ec43",
168 "tarball": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz"
169 },
170 "maintainers": [
171 {
172 "name": "sindresorhus",
173 "email": "[email protected]"
174 }
175 ],
176 "_npmOperationalInternal": {
177 "host": "packages-12-west.internal.npmjs.com",
178 "tmp": "tmp/p-locate-2.0.0.tgz_1480310721089_0.044998719124123454"
179 },
180 "directories": {}
181 },
182 "3.0.0": {
183 "name": "p-locate",
184 "version": "3.0.0",
185 "description": "Get the first fulfilled promise that satisfies the provided testing function",
186 "license": "MIT",
187 "repository": {
188 "type": "git",
189 "url": "git+https://github.com/sindresorhus/p-locate.git"
190 },
191 "author": {
192 "name": "Sindre Sorhus",
193 "email": "[email protected]",
194 "url": "sindresorhus.com"
195 },
196 "engines": {
197 "node": ">=6"
198 },
199 "scripts": {
200 "test": "xo && ava"
201 },
202 "files": [
203 "index.js"
204 ],
205 "keywords": [
206 "promise",
207 "locate",
208 "find",
209 "finder",
210 "search",
211 "searcher",
212 "test",
213 "array",
214 "collection",
215 "iterable",
216 "iterator",
217 "race",
218 "fulfilled",
219 "fastest",
220 "async",
221 "await",
222 "promises",
223 "bluebird"
224 ],
225 "dependencies": {
226 "p-limit": "^2.0.0"
227 },
228 "devDependencies": {
229 "ava": "*",
230 "delay": "^3.0.0",
231 "in-range": "^1.0.0",
232 "time-span": "^2.0.0",
233 "xo": "*"
234 },
235 "gitHead": "d37f108c0b04779e307b4e7203981caa367bac57",
236 "bugs": {
237 "url": "https://github.com/sindresorhus/p-locate/issues"
238 },
239 "homepage": "https://github.com/sindresorhus/p-locate#readme",
240 "_id": "[email protected]",
241 "_npmVersion": "5.6.0",
242 "_nodeVersion": "8.11.2",
243 "_npmUser": {
244 "name": "sindresorhus",
245 "email": "[email protected]"
246 },
247 "dist": {
248 "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==",
249 "shasum": "322d69a05c0264b25997d9f40cd8a891ab0064a4",
250 "tarball": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz",
251 "fileCount": 4,
252 "unpackedSize": 5055,
253 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbI7V+CRA9TVsSAnZWagAAmS8P/iJ5wzoShdXBVPfoNY1O\nr0t03ZiQkJ9Ae4XuJU5C5c2Si7lcgGw8sx6C+iAcYX/zWv7mfygNi+C/ADF5\nZuCBwp0hhC2Nott55961FfTiCHTO2/MRApZo2Eg3sl/ru0KglHvRFS5r/ZXb\n634s++vlPvlbFzCDfELeeM8YOxNjYryRhgNQ6UxXIvsU8RffnrMDXVJphnXE\nWuUEmhgCxzSgH8F/C0DblXoAGkp1qwKAY8MmaWgJpvtIvn2JYC/87S3pdSYy\nMngjVE1MTEulUubGKDmO83N1vM45n1r/pMZarNF2GHynO6SWR68JBPIQ+dmn\nFP4iNv+2eJVExkQzg/DKWNwoPSmq3karaEBU6AJtHRxoe8qgxdjPgjMqPZ0a\n5KieVHs/rwPxKL2/qOSfElcZ5lrnXICuoErKMeR5NjYD5o1Q+7DUhwAWzATv\nS7vP0ZdUCS0+Zt/F7vFk24WzOAhiGNK/aL5TtfKYGu9VmBDj1gJNOVHP+/zl\nRWjSFB9rkVoCYxscx+VYERfgAHqldYF2afgTNOVHy0iNOFelldi1oCT3KP0W\nIMyP1lQE+Nz3Z7JdrFIhe+a2N+swjaadfCw2nk2mesCBvYZDNUeTlQ9ao05h\nFHV0pcoqg98mHz3sklz8aj1phUPkIbbzYd9KPMRAobdjvbtwTQDu2hjYsDXv\niPPm\r\n=9PP9\r\n-----END PGP SIGNATURE-----\r\n"
254 },
255 "maintainers": [
256 {
257 "name": "sindresorhus",
258 "email": "[email protected]"
259 }
260 ],
261 "directories": {},
262 "_npmOperationalInternal": {
263 "host": "s3://npm-registry-packages",
264 "tmp": "tmp/p-locate_3.0.0_1529066877849_0.3762033584213962"
265 },
266 "_hasShrinkwrap": false
267 },
268 "4.0.0": {
269 "name": "p-locate",
270 "version": "4.0.0",
271 "description": "Get the first fulfilled promise that satisfies the provided testing function",
272 "license": "MIT",
273 "repository": {
274 "type": "git",
275 "url": "git+https://github.com/sindresorhus/p-locate.git"
276 },
277 "author": {
278 "name": "Sindre Sorhus",
279 "email": "[email protected]",
280 "url": "sindresorhus.com"
281 },
282 "engines": {
283 "node": ">=8"
284 },
285 "scripts": {
286 "test": "xo && ava && tsd-check"
287 },
288 "keywords": [
289 "promise",
290 "locate",
291 "find",
292 "finder",
293 "search",
294 "searcher",
295 "test",
296 "array",
297 "collection",
298 "iterable",
299 "iterator",
300 "race",
301 "fulfilled",
302 "fastest",
303 "async",
304 "await",
305 "promises",
306 "bluebird"
307 ],
308 "dependencies": {
309 "p-limit": "^2.0.0"
310 },
311 "devDependencies": {
312 "ava": "^1.3.1",
313 "delay": "^4.1.0",
314 "in-range": "^1.0.0",
315 "time-span": "^3.0.0",
316 "tsd-check": "^0.3.0",
317 "xo": "^0.24.0"
318 },
319 "gitHead": "44264731678d799f596872cb9ca73e0a3de4232f",
320 "bugs": {
321 "url": "https://github.com/sindresorhus/p-locate/issues"
322 },
323 "homepage": "https://github.com/sindresorhus/p-locate#readme",
324 "_id": "[email protected]",
325 "_nodeVersion": "8.15.0",
326 "_npmVersion": "6.9.0",
327 "_npmUser": {
328 "name": "sindresorhus",
329 "email": "[email protected]"
330 },
331 "dist": {
332 "integrity": "sha512-IvOiDT1hbCdrsFKKXs8AGjxouEfn9VVdz/edtT08IDr+RIn2U/o3Xx+Agx455+CkSRdomMs3EN5BgR2Q0LZX0g==",
333 "shasum": "fff5d4a5dc4f89babe7d266f6efc685630038651",
334 "tarball": "https://registry.npmjs.org/p-locate/-/p-locate-4.0.0.tgz",
335 "fileCount": 5,
336 "unpackedSize": 6497,
337 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJch3/xCRA9TVsSAnZWagAAuMAP/iZR3kJxFychHmDujPN+\n3CIDeLHjBI2yrvKAmEWbxwo5Ee3/6yWSvS8fq5RDEa9flvrgum2Zm5sMvWZI\nLYmGgybjMulLGIdrldnwI8YEQn4tJ0JGDc9xaOGkD6Ld0RZSz4NdnsJLvAr2\ngqAVQMZlcPs6IXKC+Peqbt9QNdN+Vw/tzF+XHhcZGgHQRaWqMZMOFv9v0i1v\nEpVKbr7isYJ9X2t9L2QrQQ7psmSRa6q9bC2TcoLHYr1r+jt8AN4cfhS9JimH\nXtMRFJ5f/SXJi8VIUwI9Q7zsMpfVrX8j4LTVIr4CF6Rwt1j3EvpKIrjweoFz\n/Z1c3jvW1EJv6lJh9aJHonCyOM/E8Z5ggHrpYvOEgJDAVokB3vRByZQPiXFq\nRB5/6t8jP1BVtMQAmdHqUT2O4BhawaGVqLV3yMU7T1VO8x6f1tvlo355wuAu\ntAPuEnTtxvXW0i7RbEwliKWEXAc7d9suLZnwSthXO54tkpnOlK6cuMHA6/yD\nf5alm8CbPC/6++RkyTIgvy09FXAMcMGjV6C5MOHNnZyBitf7byM8mHX1djD9\n2fLn19cKjeXdMBiyOmyId3wrmsr5UaLzQpqZGYBJ7/hPzyYOC0D2XQqS2BW1\nf6agqKHfAC2UTi7kVRikGiocMWW9bOjL+JNozSVidzH95QoE3jw2sdDx1CGY\nZ0FU\r\n=jasz\r\n-----END PGP SIGNATURE-----\r\n"
338 },
339 "maintainers": [
340 {
341 "name": "sindresorhus",
342 "email": "[email protected]"
343 }
344 ],
345 "directories": {},
346 "_npmOperationalInternal": {
347 "host": "s3://npm-registry-packages",
348 "tmp": "tmp/p-locate_4.0.0_1552383984361_0.08899244113594595"
349 },
350 "_hasShrinkwrap": false
351 },
352 "4.1.0": {
353 "name": "p-locate",
354 "version": "4.1.0",
355 "description": "Get the first fulfilled promise that satisfies the provided testing function",
356 "license": "MIT",
357 "repository": {
358 "type": "git",
359 "url": "git+https://github.com/sindresorhus/p-locate.git"
360 },
361 "author": {
362 "name": "Sindre Sorhus",
363 "email": "[email protected]",
364 "url": "sindresorhus.com"
365 },
366 "engines": {
367 "node": ">=8"
368 },
369 "scripts": {
370 "test": "xo && ava && tsd"
371 },
372 "keywords": [
373 "promise",
374 "locate",
375 "find",
376 "finder",
377 "search",
378 "searcher",
379 "test",
380 "array",
381 "collection",
382 "iterable",
383 "iterator",
384 "race",
385 "fulfilled",
386 "fastest",
387 "async",
388 "await",
389 "promises",
390 "bluebird"
391 ],
392 "dependencies": {
393 "p-limit": "^2.2.0"
394 },
395 "devDependencies": {
396 "ava": "^1.4.1",
397 "delay": "^4.1.0",
398 "in-range": "^1.0.0",
399 "time-span": "^3.0.0",
400 "tsd": "^0.7.2",
401 "xo": "^0.24.0"
402 },
403 "gitHead": "a650b26e49713a8cca58f669a7f8aef9b655554c",
404 "bugs": {
405 "url": "https://github.com/sindresorhus/p-locate/issues"
406 },
407 "homepage": "https://github.com/sindresorhus/p-locate#readme",
408 "_id": "[email protected]",
409 "_nodeVersion": "8.15.0",
410 "_npmVersion": "6.9.0",
411 "_npmUser": {
412 "name": "sindresorhus",
413 "email": "[email protected]"
414 },
415 "dist": {
416 "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
417 "shasum": "a3428bb7088b3a60292f66919278b7c297ad4f07",
418 "tarball": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
419 "fileCount": 5,
420 "unpackedSize": 7285,
421 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcpY/2CRA9TVsSAnZWagAALQMP/3vN0BSJiCM4ZVUWhqjQ\nL3PQu0gcZuncKRGoX4Vpm7nhfubo13PwinE5dDOrueBPoCrdYJQk/uuYBJQS\nugePB/oxbLwK1vL0ZanyaJTRYWrdNJsZmciYRkQ09Pci/oyZ39c6sjtkGj7v\nU8dLhR47iNBHf5RhOlxlEGEaxAHIn7xumDwRnK+xDOZCVJp4HmHcT0XK8J08\ncuraQ3ZDCGDFSJUzoL9XGUhFWlxwLfLsHwcjfBfD7kGdLBchlgrgN1uVIa0m\n8ta73mV2JtzYxrRE2WmDyDqfVdNAE0pSoUrTRrGKVrI60TguIv5c+AhEVR+R\nVYl8gnq0FbesgxhYRHz8h64HfArEBkzrOdDFNARBwZh0HYIxLIEO1gzyBKj4\nfGiyMVXKeAiGrxUWfD47Bra9fCQlxjO2IkA7c4PqWj9Al8C6Q2DfGp6e73JP\n3bXxOTNMQVxAjI/Xej7XEHaAB500KvEmrXv4Mz+wyIT3c8pdpwv8MJtw1PLf\naP1iItAWF2FZl5pyxcX9PRGLkIRz452ncq30ZLRbPohdg8+Lcqrq6zeqAucH\nkmY37n1qWmvT9btNTcHz/TsO658ty+3aiZeXh6Aw9V7SvKfxECVWs2t6rtaU\nojg73RJjxBFDr8eju0DuRXJv2EdFoHe/IgymO+eFXk9K7sw3B1RjMzlwt4Ag\nQLSM\r\n=XPFA\r\n-----END PGP SIGNATURE-----\r\n"
422 },
423 "maintainers": [
424 {
425 "name": "sindresorhus",
426 "email": "[email protected]"
427 }
428 ],
429 "directories": {},
430 "_npmOperationalInternal": {
431 "host": "s3://npm-registry-packages",
432 "tmp": "tmp/p-locate_4.1.0_1554354165996_0.6426620981467144"
433 },
434 "_hasShrinkwrap": false
435 },
436 "5.0.0": {
437 "name": "p-locate",
438 "version": "5.0.0",
439 "description": "Get the first fulfilled promise that satisfies the provided testing function",
440 "license": "MIT",
441 "repository": {
442 "type": "git",
443 "url": "git+https://github.com/sindresorhus/p-locate.git"
444 },
445 "funding": "https://github.com/sponsors/sindresorhus",
446 "author": {
447 "name": "Sindre Sorhus",
448 "email": "[email protected]",
449 "url": "https://sindresorhus.com"
450 },
451 "engines": {
452 "node": ">=10"
453 },
454 "scripts": {
455 "test": "xo && ava && tsd"
456 },
457 "keywords": [
458 "promise",
459 "locate",
460 "find",
461 "finder",
462 "search",
463 "searcher",
464 "test",
465 "array",
466 "collection",
467 "iterable",
468 "iterator",
469 "race",
470 "fulfilled",
471 "fastest",
472 "async",
473 "await",
474 "promises",
475 "bluebird"
476 ],
477 "dependencies": {
478 "p-limit": "^3.0.2"
479 },
480 "devDependencies": {
481 "ava": "^2.4.0",
482 "delay": "^4.1.0",
483 "in-range": "^2.0.0",
484 "time-span": "^4.0.0",
485 "tsd": "^0.13.1",
486 "xo": "^0.32.1"
487 },
488 "gitHead": "a01d0e4d555c00e1551954751fd3cd4b238ce82f",
489 "bugs": {
490 "url": "https://github.com/sindresorhus/p-locate/issues"
491 },
492 "homepage": "https://github.com/sindresorhus/p-locate#readme",
493 "_id": "[email protected]",
494 "_nodeVersion": "14.5.0",
495 "_npmVersion": "6.14.7",
496 "_npmUser": {
497 "name": "sindresorhus",
498 "email": "[email protected]"
499 },
500 "dist": {
501 "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
502 "shasum": "83c8315c6785005e3bd021839411c9e110e6d834",
503 "tarball": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
504 "fileCount": 5,
505 "unpackedSize": 7240,
506 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMYcLCRA9TVsSAnZWagAA0EMP/2sNFaf2lQPq5xga4ji+\nqKq31XYNUP1iUqvoKu+6AH93vlKmtciKMb6Fb4pSK2QRaJZ8erwXEKF4XB4V\nqJFOx2U8yNWVg+QoFxBDDVPcfX6tLufro+1n4BittC+pdEG0xfp+e56wV4CH\ncgQjGcLj4cawNBf2cDB/ru9a5GOr7/d1EM2Z2Ya5FCH6nf0PQek2fGxpncsE\nReT5HwG9Hyb2jEW6zCow6vSLLjUuq5MEVaRPOQL13bbovmsF5gaJ2uyibe3r\nFOwF+Lj4i2PT5/GV1wP5PX39dOXvyTSPCohDDmwNKqtPKSUZ52XSixDEwND5\ngn/eXr8e5I3kE8CX1kv2epqZjvOxxS2yoccAAiVkxI3liHy0JpwK4VSL6Fko\nYSRu5tGg8x7TLsZkVukOdWEXV6ys0HyS1rmznUo0ewLP3M4kVNpEuWCNq7W0\nNyNwCmTN4/a1rQsrXw49c9DYbbbqfXy723RTaWD+Z/AH/04wFL9pjRoV+hgl\nw42Hb1ITUjzM2lfiNlLJt0Wzqm2a2WrrUXJ+GfkcsgUFg92Bzqk7K7UYW2SO\nXcRnTaqh1pj2CCgEA61a8VM+UXVA+ZEjgYumaa5zJ6BP0x+h0oWNfB8XBlba\nIYhYx87PUI549RKN+Si/F5vJfWUNOy/O7BEQ/Vhj494POXwMuBkxnuqfLrN2\nDFey\r\n=zCT1\r\n-----END PGP SIGNATURE-----\r\n"
507 },
508 "maintainers": [
509 {
510 "name": "sindresorhus",
511 "email": "[email protected]"
512 }
513 ],
514 "directories": {},
515 "_npmOperationalInternal": {
516 "host": "s3://npm-registry-packages",
517 "tmp": "tmp/p-locate_5.0.0_1597081354525_0.2940768154089548"
518 },
519 "_hasShrinkwrap": false
520 }
521 },
522 "readme": "# p-locate [![Build Status](https://travis-ci.com/sindresorhus/p-locate.svg?branch=master)](https://travis-ci.com/github/sindresorhus/p-locate)\n\n> Get the first fulfilled promise that satisfies the provided testing function\n\nThink of it like an async version of [`Array#find`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/find).\n\n## Install\n\n```\n$ npm install p-locate\n```\n\n## Usage\n\nHere we find the first file that exists on disk, in array order.\n\n```js\nconst pathExists = require('path-exists');\nconst pLocate = require('p-locate');\n\nconst files = [\n\t'unicorn.png',\n\t'rainbow.png', // Only this one actually exists on disk\n\t'pony.png'\n];\n\n(async () => {\n\tconst foundPath = await pLocate(files, file => pathExists(file));\n\n\tconsole.log(foundPath);\n\t//=> 'rainbow'\n})();\n```\n\n*The above is just an example. Use [`locate-path`](https://github.com/sindresorhus/locate-path) if you need this.*\n\n## API\n\n### pLocate(input, tester, options?)\n\nReturns a `Promise` that is fulfilled when `tester` resolves to `true` or the iterable is done, or rejects if any of the promises reject. The fulfilled value is the current iterable value or `undefined` if `tester` never resolved to `true`.\n\n#### input\n\nType: `Iterable<Promise | unknown>`\n\nAn iterable of promises/values to test.\n\n#### tester(element)\n\nType: `Function`\n\nThis function will receive resolved values from `input` and is expected to return a `Promise<boolean>` or `boolean`.\n\n#### options\n\nType: `object`\n\n##### concurrency\n\nType: `number`\\\nDefault: `Infinity`\\\nMinimum: `1`\n\nNumber of concurrently pending promises returned by `tester`.\n\n##### preserveOrder\n\nType: `boolean`\\\nDefault: `true`\n\nPreserve `input` order when searching.\n\nDisable this to improve performance if you don't care about the order.\n\n## Related\n\n- [p-map](https://github.com/sindresorhus/p-map) - Map over promises concurrently\n- [p-filter](https://github.com/sindresorhus/p-filter) - Filter promises concurrently\n- [p-any](https://github.com/sindresorhus/p-any) - Wait for any promise to be fulfilled\n- [More…](https://github.com/sindresorhus/promise-fun)\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-p-locate?utm_source=npm-p-locate&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n",
523 "maintainers": [
524 {
525 "name": "sindresorhus",
526 "email": "[email protected]"
527 }
528 ],
529 "time": {
530 "modified": "2020-08-10T17:42:37.057Z",
531 "created": "2016-11-20T10:07:34.210Z",
532 "1.0.0": "2016-11-20T10:07:34.210Z",
533 "2.0.0": "2016-11-28T05:25:21.460Z",
534 "3.0.0": "2018-06-15T12:47:57.897Z",
535 "4.0.0": "2019-03-12T09:46:24.520Z",
536 "4.1.0": "2019-04-04T05:02:46.111Z",
537 "5.0.0": "2020-08-10T17:42:34.692Z"
538 },
539 "homepage": "https://github.com/sindresorhus/p-locate#readme",
540 "keywords": [
541 "promise",
542 "locate",
543 "find",
544 "finder",
545 "search",
546 "searcher",
547 "test",
548 "array",
549 "collection",
550 "iterable",
551 "iterator",
552 "race",
553 "fulfilled",
554 "fastest",
555 "async",
556 "await",
557 "promises",
558 "bluebird"
559 ],
560 "repository": {
561 "type": "git",
562 "url": "git+https://github.com/sindresorhus/p-locate.git"
563 },
564 "author": {
565 "name": "Sindre Sorhus",
566 "email": "[email protected]",
567 "url": "https://sindresorhus.com"
568 },
569 "bugs": {
570 "url": "https://github.com/sindresorhus/p-locate/issues"
571 },
572 "license": "MIT",
573 "readmeFilename": "readme.md",
574 "users": {
575 "rocket0191": true
576 }
577 }