UNPKG

p-locate

Version:

Get the first fulfilled promise that satisfies the provided testing function

61 lines (60 loc) 1.05 kB
{ "name": "p-locate", "version": "7.0.0", "description": "Get the first fulfilled promise that satisfies the provided testing function", "license": "MIT", "repository": "sindresorhus/p-locate", "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" }, "files": [ "index.js", "index.d.ts" ], "keywords": [ "promise", "locate", "find", "finder", "search", "searcher", "test", "array", "collection", "iterable", "iterator", "race", "fulfilled", "fastest", "async", "await", "promises", "bluebird" ], "dependencies": { "p-limit": "^7.2.0" }, "devDependencies": { "ava": "^6.4.1", "delay": "^7.0.0", "in-range": "^3.0.0", "time-span": "^5.1.0", "tsd": "^0.33.0", "xo": "^1.2.3" } }