{"_id":"p-limit","_rev":"4180166","name":"p-limit","description":"Run multiple promise-returning & async functions with limited concurrency","dist-tags":{"latest":"7.3.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2026-03-01T21:46:58.000Z","created":"2016-10-21T07:59:41.638Z","7.3.0":"2026-02-03T15:27:40.228Z","7.2.0":"2025-10-19T15:26:03.779Z","7.1.1":"2025-08-28T10:41:53.372Z","7.1.0":"2025-08-19T15:03:46.338Z","7.0.0":"2025-08-14T20:51:04.246Z","6.2.0":"2024-12-19T15:46:38.158Z","6.1.0":"2024-07-08T12:04:04.684Z","6.0.0":"2024-07-04T11:55:53.803Z","5.0.0":"2023-11-01T06:31:04.353Z","4.0.0":"2021-08-12T23:58:23.464Z","3.1.0":"2020-11-25T07:42:37.364Z","3.0.2":"2020-07-12T13:39:53.636Z","3.0.1":"2020-06-06T16:21:37.806Z","3.0.0":"2020-06-06T11:53:03.481Z","2.3.0":"2020-04-05T15:40:45.137Z","2.2.2":"2020-01-01T18:42:31.824Z","2.2.1":"2019-08-18T18:52:19.615Z","2.2.0":"2019-03-02T19:21:13.574Z","2.1.0":"2018-12-25T14:16:18.049Z","2.0.0":"2018-06-14T17:44:20.143Z","1.3.0":"2018-06-06T16:01:38.768Z","1.2.0":"2018-01-04T00:24:17.334Z","1.1.0":"2016-11-21T06:59:47.875Z","1.0.0":"2016-10-21T07:59:41.638Z"},"users":{"kah":true,"rocket0191":true,"modood":true,"yourtion":true,"zhenguo.zhao":true,"karuppiah7890":true,"mcalavera81":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.git"},"versions":{"7.3.0":{"name":"p-limit","version":"7.3.0","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.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","benchmark":"node benchmark.js"},"keywords":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"dependencies":{"yocto-queue":"^1.2.1"},"devDependencies":{"ava":"^6.4.1","in-range":"^3.0.0","random-int":"^3.0.0","time-span":"^5.1.0","tsd":"^0.33.0","xo":"^1.2.1"},"gitHead":"886bda51d7cd38b5fe48e7e4516b5b1ce6f145ba","types":"./index.d.ts","_id":"p-limit@7.3.0","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_nodeVersion":"25.3.0","_npmVersion":"11.7.0","dist":{"shasum":"821398d91491c6b6a1340ecd09cdc402a9c8d0ee","size":4580,"noattachment":false,"key":"/p-limit/-/p-limit-7.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-7.3.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/p-limit_7.3.0_1770132460089_0.6165695090928724"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-03T15:27:40.228Z","publish_time":1770132460228,"_source_registry_name":"default","_cnpm_publish_time":1770132460228},"7.2.0":{"name":"p-limit","version":"7.2.0","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.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","benchmark":"node benchmark.js"},"keywords":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"dependencies":{"yocto-queue":"^1.2.1"},"devDependencies":{"ava":"^6.4.1","in-range":"^3.0.0","random-int":"^3.0.0","time-span":"^5.1.0","tsd":"^0.33.0","xo":"^1.2.1"},"gitHead":"7bdd25c703337360236722ed7d4da5ffadcb7a08","types":"./index.d.ts","_id":"p-limit@7.2.0","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_nodeVersion":"24.9.0","_npmVersion":"11.6.1","dist":{"shasum":"afcf6b5a86d093660140497dda0e640dd01a7b3b","size":4080,"noattachment":false,"key":"/p-limit/-/p-limit-7.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-7.2.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/p-limit_7.2.0_1760887563569_0.9265982734439631"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-10-19T15:26:03.779Z","publish_time":1760887563779,"_source_registry_name":"default","_cnpm_publish_time":1760887563779},"7.1.1":{"name":"p-limit","version":"7.1.1","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.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","benchmark":"node benchmark.js"},"keywords":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"dependencies":{"yocto-queue":"^1.2.1"},"devDependencies":{"ava":"^6.4.1","delay":"^6.0.0","in-range":"^3.0.0","random-int":"^3.0.0","time-span":"^5.1.0","tsd":"^0.33.0","xo":"^1.2.1"},"_id":"p-limit@7.1.1","gitHead":"25655a000c5179f6d3732243b2d069d8073eaf71","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_nodeVersion":"20.19.1","_npmVersion":"10.9.2","dist":{"shasum":"1f349332b179e370ede603078d975048b9e904a2","size":4084,"noattachment":false,"key":"/p-limit/-/p-limit-7.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-7.1.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/p-limit_7.1.1_1756377713224_0.5609581321824095"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-28T10:41:53.372Z","publish_time":1756377713372,"_source_registry_name":"default","_cnpm_publish_time":1756377713372},"7.1.0":{"name":"p-limit","version":"7.1.0","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.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","benchmark":"node benchmark.js"},"keywords":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"dependencies":{"yocto-queue":"^1.2.1"},"devDependencies":{"ava":"^6.4.1","delay":"^6.0.0","in-range":"^3.0.0","random-int":"^3.0.0","time-span":"^5.1.0","tsd":"^0.33.0","xo":"^1.2.1"},"_id":"p-limit@7.1.0","gitHead":"c944e4a4363ff41a7202d5dec346cc174c3ecf49","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_nodeVersion":"20.19.1","_npmVersion":"10.9.2","dist":{"shasum":"eb9721142d36e03b50f37fc06de0ba6788380dee","size":4080,"noattachment":false,"key":"/p-limit/-/p-limit-7.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-7.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/p-limit_7.1.0_1755615826160_0.746253507339651"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-19T15:03:46.338Z","publish_time":1755615826338,"_source_registry_name":"default","_cnpm_publish_time":1755615826338},"7.0.0":{"name":"p-limit","version":"7.0.0","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.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","benchmark":"node benchmark.js"},"keywords":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"dependencies":{"yocto-queue":"^1.2.1"},"devDependencies":{"ava":"^6.4.1","delay":"^6.0.0","in-range":"^3.0.0","random-int":"^3.0.0","time-span":"^5.1.0","tsd":"^0.33.0","xo":"^1.2.1"},"_id":"p-limit@7.0.0","gitHead":"2b14c23295d271eb73396a1d4bdd8d816017421c","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_nodeVersion":"24.5.0","_npmVersion":"10.9.2","dist":{"shasum":"18e2aab64e87718f96b2fcfd70f598bbd1d847a8","size":4022,"noattachment":false,"key":"/p-limit/-/p-limit-7.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-7.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/p-limit_7.0.0_1755204664044_0.9538718323678221"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-14T20:51:04.246Z","publish_time":1755204664246,"_source_registry_name":"default","_cnpm_publish_time":1755204664246},"6.2.0":{"name":"p-limit","version":"6.2.0","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.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":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"dependencies":{"yocto-queue":"^1.1.1"},"devDependencies":{"ava":"^6.1.3","delay":"^6.0.0","in-range":"^3.0.0","random-int":"^3.0.0","time-span":"^5.1.0","tsd":"^0.31.1","xo":"^0.58.0"},"_id":"p-limit@6.2.0","gitHead":"7d14b3f04aa990f621a853e24e2a4b796baf1ec9","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_nodeVersion":"23.3.0","_npmVersion":"10.9.0","dist":{"shasum":"c254d22ba6aeef441a3564c5e6c2f2da59268a0f","size":3678,"noattachment":false,"key":"/p-limit/-/p-limit-6.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-6.2.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/p-limit_6.2.0_1734623197970_0.6282986687976977"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-19T15:46:38.158Z","publish_time":1734623198158,"_source_registry_name":"default","_cnpm_publish_time":1734623198158},"6.1.0":{"name":"p-limit","version":"6.1.0","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.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":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"dependencies":{"yocto-queue":"^1.1.1"},"devDependencies":{"ava":"^6.1.3","delay":"^6.0.0","in-range":"^3.0.0","random-int":"^3.0.0","time-span":"^5.1.0","tsd":"^0.31.1","xo":"^0.58.0"},"_id":"p-limit@6.1.0","gitHead":"98c8fef5562fabd900dfd9172013962889e13df6","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_nodeVersion":"18.20.2","_npmVersion":"10.6.0","dist":{"shasum":"d91f9364d3fdff89b0a45c70d04ad4e0df30a0e8","size":3344,"noattachment":false,"key":"/p-limit/-/p-limit-6.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-6.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-limit_6.1.0_1720440244518_0.8585718405141409"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-07-08T12:04:04.684Z","publish_time":1720440244684,"_source_registry_name":"default","_cnpm_publish_time":1720440244684},"6.0.0":{"name":"p-limit","version":"6.0.0","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.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":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"dependencies":{"yocto-queue":"^1.1.1"},"devDependencies":{"ava":"^6.1.3","delay":"^6.0.0","in-range":"^3.0.0","random-int":"^3.0.0","time-span":"^5.1.0","tsd":"^0.31.1","xo":"^0.58.0"},"_id":"p-limit@6.0.0","gitHead":"850768f5655dc46547802789e13af3cf35c3d7b0","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_nodeVersion":"18.20.2","_npmVersion":"10.6.0","dist":{"shasum":"c1e3aae949b4c53a2936b2d7e38a40bb87720011","size":3203,"noattachment":false,"key":"/p-limit/-/p-limit-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-6.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-limit_6.0.0_1720094153626_0.8405826224508739"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-07-04T11:55:53.803Z","publish_time":1720094153803,"_source_registry_name":"default","_cnpm_publish_time":1720094153803},"5.0.0":{"name":"p-limit","version":"5.0.0","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.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"},"imports":{"#async_hooks":{"node":"async_hooks","default":"./async-hooks-stub.js"}},"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"keywords":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"dependencies":{"yocto-queue":"^1.0.0"},"devDependencies":{"ava":"^5.3.1","delay":"^6.0.0","in-range":"^3.0.0","random-int":"^3.0.0","time-span":"^5.1.0","tsd":"^0.29.0","xo":"^0.56.0"},"types":"./index.d.ts","gitHead":"f53bdb5f464ae112b2859e834fdebedc0745199b","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_id":"p-limit@5.0.0","_nodeVersion":"18.18.2","_npmVersion":"9.2.0","dist":{"shasum":"6946d5b7140b649b7a33a027d89b4c625b3a5985","size":3246,"noattachment":false,"key":"/p-limit/-/p-limit-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-5.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-limit_5.0.0_1698820264163_0.08717723629406482"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-01T06:31:04.353Z","publish_time":1698820264353,"_source_registry_name":"default","_cnpm_publish_time":1698820264353},"4.0.0":{"name":"p-limit","version":"4.0.0","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.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":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"dependencies":{"yocto-queue":"^1.0.0"},"devDependencies":{"ava":"^3.15.0","delay":"^5.0.0","in-range":"^3.0.0","random-int":"^3.0.0","time-span":"^5.0.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"38a6773e552d24f4c9eb2d79d57b6cff017c587d","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_id":"p-limit@4.0.0","_nodeVersion":"12.22.1","_npmVersion":"7.10.0","dist":{"shasum":"914af6544ed32bfa54670b061cafcbd04984b644","size":3284,"noattachment":false,"key":"/p-limit/-/p-limit-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-limit_4.0.0_1628812703302_0.6491971469999389"},"_hasShrinkwrap":false,"publish_time":1628812703464,"_cnpm_publish_time":1628812703464},"3.1.0":{"name":"p-limit","version":"3.1.0","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.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":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"dependencies":{"yocto-queue":"^0.1.0"},"devDependencies":{"ava":"^2.4.0","delay":"^4.4.0","in-range":"^2.0.0","random-int":"^2.0.1","time-span":"^4.0.0","tsd":"^0.13.1","xo":"^0.35.0"},"gitHead":"e316fac4e7aeede98beeb87e3a7de4ffc3d8eebf","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_id":"p-limit@3.1.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"e1daccbe78d0d1388ca18c64fea38e3e57e3706b","size":3265,"noattachment":false,"key":"/p-limit/-/p-limit-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-3.1.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-limit_3.1.0_1606290157244_0.5907879843343353"},"_hasShrinkwrap":false,"publish_time":1606290157364,"_cnpm_publish_time":1606290157364},"3.0.2":{"name":"p-limit","version":"3.0.2","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.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":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"dependencies":{"p-try":"^2.0.0"},"devDependencies":{"ava":"^2.4.0","delay":"^4.1.0","in-range":"^2.0.0","random-int":"^2.0.1","time-span":"^4.0.0","tsd":"^0.11.0","xo":"^0.26.0"},"gitHead":"b702cc1aa737ae834b4deaf87a537812d8d5418f","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_id":"p-limit@3.0.2","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"1664e010af3cadc681baafd3e2a437be7b0fb5fe","size":3353,"noattachment":false,"key":"/p-limit/-/p-limit-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-3.0.2.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-limit_3.0.2_1594561193541_0.8922591638953525"},"_hasShrinkwrap":false,"publish_time":1594561193636,"_cnpm_publish_time":1594561193636},"3.0.1":{"name":"p-limit","version":"3.0.1","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.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":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"dependencies":{"p-try":"^2.0.0"},"devDependencies":{"ava":"^2.4.0","delay":"^4.1.0","in-range":"^2.0.0","random-int":"^2.0.1","time-span":"^4.0.0","tsd":"^0.11.0","xo":"^0.26.0"},"gitHead":"824edb836eedc9929ea383457cd82d8367f7322e","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_id":"p-limit@3.0.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"584784ac0722d1aed09f19f90ed2999af6ce2839","size":3357,"noattachment":false,"key":"/p-limit/-/p-limit-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-3.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-limit_3.0.1_1591460497710_0.05351684556450653"},"_hasShrinkwrap":false,"publish_time":1591460497806,"_cnpm_publish_time":1591460497806},"3.0.0":{"name":"p-limit","version":"3.0.0","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.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":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"dependencies":{"p-try":"^2.0.0"},"devDependencies":{"ava":"^2.4.0","delay":"^4.1.0","in-range":"^2.0.0","random-int":"^2.0.1","time-span":"^4.0.0","tsd":"^0.11.0","xo":"^0.26.0"},"gitHead":"0038c559658ad75445de4b3a8c6e0167129e813c","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_id":"p-limit@3.0.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"8a9da09ee359017af6a3aa6b8ede13f5894224ec","size":3337,"noattachment":false,"key":"/p-limit/-/p-limit-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-limit_3.0.0_1591444383325_0.9378092234424682"},"_hasShrinkwrap":false,"publish_time":1591444383481,"_cnpm_publish_time":1591444383481},"2.3.0":{"name":"p-limit","version":"2.3.0","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"dependencies":{"p-try":"^2.0.0"},"devDependencies":{"ava":"^1.2.1","delay":"^4.1.0","in-range":"^1.0.0","random-int":"^1.0.0","time-span":"^2.0.0","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"a11f02bc5c04490b7c3de2663d866c211fb915ea","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_id":"p-limit@2.3.0","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"3dd33c647a214fdfffd835933eb086da0dc21db1","size":3140,"noattachment":false,"key":"/p-limit/-/p-limit-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-2.3.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-limit_2.3.0_1586101245000_0.8128440121358671"},"_hasShrinkwrap":false,"publish_time":1586101245137,"_cnpm_publish_time":1586101245137},"2.2.2":{"name":"p-limit","version":"2.2.2","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"dependencies":{"p-try":"^2.0.0"},"devDependencies":{"ava":"^1.2.1","delay":"^4.1.0","in-range":"^1.0.0","random-int":"^1.0.0","time-span":"^2.0.0","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"6d7a2253a33248572aa87a56bc4af9e3fe247232","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_id":"p-limit@2.2.2","_nodeVersion":"10.17.0","_npmVersion":"6.13.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"61279b67721f5287aa1c13a9a7fbbc48c9291b1e","size":2967,"noattachment":false,"key":"/p-limit/-/p-limit-2.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-2.2.2.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-limit_2.2.2_1577904151691_0.7571350708733962"},"_hasShrinkwrap":false,"publish_time":1577904151824,"_cnpm_publish_time":1577904151824},"2.2.1":{"name":"p-limit","version":"2.2.1","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"dependencies":{"p-try":"^2.0.0"},"devDependencies":{"ava":"^1.2.1","delay":"^4.1.0","in-range":"^1.0.0","random-int":"^1.0.0","time-span":"^2.0.0","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"056c0f3674041b90ecfb69c808ec1b910eb1e993","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_id":"p-limit@2.2.1","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"aa07a788cc3151c939b5131f63570f0dd2009537","size":2959,"noattachment":false,"key":"/p-limit/-/p-limit-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-2.2.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-limit_2.2.1_1566154339491_0.7648657346726373"},"_hasShrinkwrap":false,"publish_time":1566154339615,"_cnpm_publish_time":1566154339615},"2.2.0":{"name":"p-limit","version":"2.2.0","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"dependencies":{"p-try":"^2.0.0"},"devDependencies":{"ava":"^1.2.1","delay":"^4.1.0","in-range":"^1.0.0","random-int":"^1.0.0","time-span":"^2.0.0","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"0320e8b5e9b9ff66db20f98aa4cf235146768bcd","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_id":"p-limit@2.2.0","_nodeVersion":"10.15.1","_npmVersion":"6.8.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"417c9941e6027a9abcba5092dd2904e255b5fbc2","size":2707,"noattachment":false,"key":"/p-limit/-/p-limit-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-2.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-limit_2.2.0_1551554473384_0.12635434710499815"},"_hasShrinkwrap":false,"publish_time":1551554473574,"_cnpm_publish_time":1551554473574},"2.1.0":{"name":"p-limit","version":"2.1.0","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"keywords":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"dependencies":{"p-try":"^2.0.0"},"devDependencies":{"ava":"^1.0.1","delay":"^4.1.0","in-range":"^1.0.0","random-int":"^1.0.0","time-span":"^2.0.0","xo":"^0.23.0"},"gitHead":"8517860c047c5fc485d92879bfc01952e1417d19","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_id":"p-limit@2.1.0","_npmVersion":"6.4.1","_nodeVersion":"11.5.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"1d5a0d20fb12707c758a655f6bbc4386b5930d68","size":2425,"noattachment":false,"key":"/p-limit/-/p-limit-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-limit_2.1.0_1545747377882_0.09658731145738386"},"_hasShrinkwrap":false,"publish_time":1545747378049,"_cnpm_publish_time":1545747378049},"2.0.0":{"name":"p-limit","version":"2.0.0","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"dependencies":{"p-try":"^2.0.0"},"devDependencies":{"ava":"*","delay":"^3.0.0","in-range":"^1.0.0","random-int":"^1.0.0","time-span":"^2.0.0","xo":"*"},"gitHead":"0eef70fffc6503a84d8a768b6efe42e227169dc6","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_id":"p-limit@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"e624ed54ee8c460a778b3c9f3670496ff8a57aec","size":2170,"noattachment":false,"key":"/p-limit/-/p-limit-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-limit_2.0.0_1528998260071_0.8291032578012119"},"_hasShrinkwrap":false,"publish_time":1528998260143,"_cnpm_publish_time":1528998260143},"1.3.0":{"name":"p-limit","version":"1.3.0","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"dependencies":{"p-try":"^1.0.0"},"devDependencies":{"ava":"*","delay":"^2.0.0","in-range":"^1.0.0","random-int":"^1.0.0","time-span":"^2.0.0","xo":"*"},"gitHead":"cf076d73844ebbfda8ae4e184fc436396998ecb2","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_id":"p-limit@1.3.0","_npmVersion":"6.1.0","_nodeVersion":"8.11.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"b86bd5f0c25690911c7590fcbfc2010d54b3ccb8","size":2000,"noattachment":false,"key":"/p-limit/-/p-limit-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-1.3.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-limit_1.3.0_1528300898695_0.9429035390514915"},"_hasShrinkwrap":false,"publish_time":1528300898768,"_cnpm_publish_time":1528300898768},"1.2.0":{"name":"p-limit","version":"1.2.0","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"dependencies":{"p-try":"^1.0.0"},"devDependencies":{"ava":"*","delay":"^2.0.0","in-range":"^1.0.0","random-int":"^1.0.0","time-span":"^2.0.0","xo":"*"},"gitHead":"4b3ecd3e9b43de4ae687505bc946b41d496065f1","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_id":"p-limit@1.2.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"0e92b6bedcb59f022c13d0f1949dc82d15909f1c","size":2024,"noattachment":false,"key":"/p-limit/-/p-limit-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-1.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-limit-1.2.0.tgz_1515025456369_0.8515273337252438"},"directories":{},"publish_time":1515025457334,"_cnpm_publish_time":1515025457334,"_hasShrinkwrap":false},"1.1.0":{"name":"p-limit","version":"1.1.0","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"devDependencies":{"ava":"*","delay":"^1.3.1","in-range":"^1.0.0","random-int":"^1.0.0","time-span":"^1.0.0","xo":"*"},"xo":{"esnext":true},"gitHead":"276b0aeef73ac9fe0b80622d8261a2bbe4f9f74c","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_id":"p-limit@1.1.0","_shasum":"b07ff2d9a5d88bec806035895a2bab66a27988bc","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.6.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"b07ff2d9a5d88bec806035895a2bab66a27988bc","size":2031,"noattachment":false,"key":"/p-limit/-/p-limit-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-1.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/p-limit-1.1.0.tgz_1479711587647_0.4504568234551698"},"directories":{},"publish_time":1479711587875,"_cnpm_publish_time":1479711587875,"_hasShrinkwrap":false},"1.0.0":{"name":"p-limit","version":"1.0.0","description":"Run multiple promise-returning & async functions with limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-limit.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["promise","limit","limited","concurrency","throttle","throat","rate","batch","ratelimit","task","queue","async","await","promises","bluebird"],"devDependencies":{"ava":"*","delay":"^1.3.1","in-range":"^1.0.0","random-int":"^1.0.0","time-span":"^1.0.0","xo":"*"},"xo":{"esnext":true},"gitHead":"b364100fada683f5d43640fec2fd48b6ab4978dd","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"homepage":"https://github.com/sindresorhus/p-limit#readme","_id":"p-limit@1.0.0","_shasum":"1b6d069a70cbb89c54c172765680eff803a1e0ec","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"1b6d069a70cbb89c54c172765680eff803a1e0ec","size":2028,"noattachment":false,"key":"/p-limit/-/p-limit-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-limit/download/p-limit-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/p-limit-1.0.0.tgz_1477036781404_0.05086738429963589"},"directories":{},"publish_time":1477036781638,"_cnpm_publish_time":1477036781638,"_hasShrinkwrap":false}},"readme":"# p-limit\n\n> Run multiple promise-returning & async functions with limited concurrency\n\n*Works in Node.js and browsers.*\n\n## Install\n\n```sh\nnpm install p-limit\n```\n\n## Usage\n\n```js\nimport pLimit from 'p-limit';\n\nconst limit = pLimit(1);\n\nconst input = [\n\tlimit(() => fetchSomething('foo')),\n\tlimit(() => fetchSomething('bar')),\n\tlimit(() => doSomething())\n];\n\n// Only one promise is run at once\nconst result = await Promise.all(input);\nconsole.log(result);\n```\n\n## API\n\n### pLimit(concurrency) <sup>default export</sup>\n\nReturns a `limit` function.\n\n#### concurrency\n\nType: `number | object`\\\nMinimum: `1`\n\nConcurrency limit.\n\nYou can pass a number or an options object with a `concurrency` property.\n\n#### rejectOnClear\n\nType: `boolean`\\\nDefault: `false`\n\nReject pending promises with an `AbortError` when `clearQueue()` is called.\nThis is recommended if you await the returned promises, for example with `Promise.all`, so pending tasks do not remain unresolved after `clearQueue()`.\n\n```js\nimport pLimit from 'p-limit';\n\nconst limit = pLimit({concurrency: 1});\n```\n\n### limit(fn, ...args)\n\nReturns the promise returned by calling `fn(...args)`.\n\n#### fn\n\nType: `Function`\n\nPromise-returning/async function.\n\n#### args\n\nAny arguments to pass through to `fn`.\n\nSupport for passing arguments on to the `fn` is provided in order to be able to avoid creating unnecessary closures. You probably don't need this optimization unless you're pushing a *lot* of functions.\n\nWarning: Avoid calling the same `limit` function inside a function that is already limited by it. This can create a deadlock where inner tasks never run. Use a separate limiter for inner tasks.\n\n### limit.map(iterable, mapperFunction)\n\nProcess an iterable of inputs with limited concurrency.\n\nThe mapper function receives the item value and its index.\n\nReturns a promise equivalent to `Promise.all(Array.from(iterable, (item, index) => limit(mapperFunction, item, index)))`.\n\nThis is a convenience function for processing inputs that arrive in batches. For more complex use cases, see [p-map](https://github.com/sindresorhus/p-map).\n\n### limit.activeCount\n\nThe number of promises that are currently running.\n\n### limit.pendingCount\n\nThe number of promises that are waiting to run (i.e. their internal `fn` was not called yet).\n\n### limit.clearQueue()\n\nDiscard pending promises that are waiting to run.\n\nThis might be useful if you want to teardown the queue at the end of your program's lifecycle or discard any function calls referencing an intermediary state of your app.\n\nNote: This does not cancel promises that are already running.\n\nWhen `rejectOnClear` is enabled, pending promises are rejected with an `AbortError`.\nThis is recommended if you await the returned promises, for example with `Promise.all`, so pending tasks do not remain unresolved after `clearQueue()`.\n\n### limit.concurrency\n\nGet or set the concurrency limit.\n\n### limitFunction(fn, options) <sup>named export</sup>\n\nReturns a function with limited concurrency.\n\nThe returned function manages its own concurrent executions, allowing you to call it multiple times without exceeding the specified concurrency limit.\n\nIdeal for scenarios where you need to control the number of simultaneous executions of a single function, rather than managing concurrency across multiple functions.\n\n```js\nimport {limitFunction} from 'p-limit';\n\nconst limitedFunction = limitFunction(async () => {\n\treturn doSomething();\n}, {concurrency: 1});\n\nconst input = Array.from({length: 10}, limitedFunction);\n\n// Only one promise is run at once.\nawait Promise.all(input);\n```\n\n#### fn\n\nType: `Function`\n\nPromise-returning/async function.\n\n#### options\n\nType: `object`\n\n#### concurrency\n\nType: `number`\\\nMinimum: `1`\n\nConcurrency limit.\n\n#### rejectOnClear\n\nType: `boolean`\\\nDefault: `false`\n\nReject pending promises with an `AbortError` when `clearQueue()` is called.\nThis is recommended if you await the returned promises, for example with `Promise.all`, so pending tasks do not remain unresolved after `clearQueue()`.\n\n## Recipes\n\nSee [recipes.md](recipes.md) for common use cases and patterns.\n\n## FAQ\n\n### How is this different from the [`p-queue`](https://github.com/sindresorhus/p-queue) package?\n\nThis package is only about limiting the number of concurrent executions, while `p-queue` is a fully featured queue implementation with lots of different options, introspection, and ability to pause the queue.\n\n## Related\n\n- [p-throttle](https://github.com/sindresorhus/p-throttle) - Throttle promise-returning & async functions\n- [p-debounce](https://github.com/sindresorhus/p-debounce) - Debounce promise-returning & async functions\n- [p-map](https://github.com/sindresorhus/p-map) - Run promise-returning & async functions concurrently with different inputs\n- [p-all](https://github.com/sindresorhus/p-all) - Run promise-returning & async functions concurrently with optional limited concurrency\n- [More…](https://github.com/sindresorhus/promise-fun)\n","_attachments":{},"homepage":"https://github.com/sindresorhus/p-limit#readme","bugs":{"url":"https://github.com/sindresorhus/p-limit/issues"},"license":"MIT"}