{"_id":"p-map","_rev":"4130169","name":"p-map","description":"Map over promises concurrently","dist-tags":{"latest":"7.0.4"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2026-03-01T18:31:40.000Z","created":"2016-10-21T03:44:11.145Z","7.0.4":"2025-11-11T06:28:53.483Z","7.0.3":"2024-12-05T21:00:19.088Z","7.0.2":"2024-04-03T07:53:50.317Z","7.0.1":"2023-12-27T00:43:53.371Z","7.0.0":"2023-12-05T12:25:34.094Z","6.0.0":"2023-04-22T09:02:10.957Z","5.5.0":"2022-06-09T17:49:43.630Z","5.4.0":"2022-05-17T06:16:18.220Z","5.3.0":"2021-11-02T12:05:16.074Z","5.2.0":"2021-10-27T07:24:03.798Z","5.1.0":"2021-07-23T23:19:05.567Z","5.0.0":"2021-04-17T18:11:39.631Z","4.0.0":"2020-03-05T08:42:45.749Z","3.0.0":"2019-07-13T15:47:35.679Z","2.1.0":"2019-04-06T15:27:46.979Z","2.0.0":"2018-09-17T15:59:19.208Z","1.2.0":"2017-09-12T05:43:56.000Z","1.1.1":"2017-01-19T06:59:19.945Z","1.1.0":"2016-11-18T10:49:47.847Z","1.0.0":"2016-10-21T03:44:11.145Z"},"users":{"seangenabe":true,"rocket0191":true,"geniusm4ster":true,"ferx":true,"r37r0m0d3l":true,"karuppiah7890":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map.git"},"versions":{"7.0.4":{"name":"p-map","version":"7.0.4","description":"Map over promises concurrently","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map.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","map","resolved","wait","collection","iterable","iterator","race","fulfilled","async","await","promises","concurrently","concurrency","parallel","bluebird"],"devDependencies":{"ava":"^5.2.0","chalk":"^5.3.0","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"},"gitHead":"47bc82e569e962e190eb56242510709cfa5b805f","types":"./index.d.ts","_id":"p-map@7.0.4","bugs":{"url":"https://github.com/sindresorhus/p-map/issues"},"homepage":"https://github.com/sindresorhus/p-map#readme","_nodeVersion":"20.19.5","_npmVersion":"11.6.1","dist":{"shasum":"b81814255f542e252d5729dca4d66e5ec14935b8","size":5826,"noattachment":false,"key":"/p-map/-/p-map-7.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-map/download/p-map-7.0.4.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/p-map_7.0.4_1762842533294_0.9002301167253024"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-11-11T06:28:53.483Z","publish_time":1762842533483,"_source_registry_name":"default","_cnpm_publish_time":1762842533483},"7.0.3":{"name":"p-map","version":"7.0.3","description":"Map over promises concurrently","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map.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","map","resolved","wait","collection","iterable","iterator","race","fulfilled","async","await","promises","concurrently","concurrency","parallel","bluebird"],"devDependencies":{"ava":"^5.2.0","chalk":"^5.3.0","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"},"_id":"p-map@7.0.3","gitHead":"2ba3a002acac080c60c47ca1dfa2fad3e17f5b7c","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/p-map/issues"},"homepage":"https://github.com/sindresorhus/p-map#readme","_nodeVersion":"23.3.0","_npmVersion":"10.9.0","dist":{"shasum":"7ac210a2d36f81ec28b736134810f7ba4418cdb6","size":5792,"noattachment":false,"key":"/p-map/-/p-map-7.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-map/download/p-map-7.0.3.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-map_7.0.3_1733432418916_0.19165390988779807"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-05T21:00:19.088Z","publish_time":1733432419088,"_source_registry_name":"default","_cnpm_publish_time":1733432419088},"7.0.2":{"name":"p-map","version":"7.0.2","description":"Map over promises concurrently","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map.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","map","resolved","wait","collection","iterable","iterator","race","fulfilled","async","await","promises","concurrently","concurrency","parallel","bluebird"],"devDependencies":{"ava":"^5.2.0","chalk":"^5.3.0","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":"a38d5a7180ba9ecd6a02e37ec5cc6ae11f3433ac","bugs":{"url":"https://github.com/sindresorhus/p-map/issues"},"homepage":"https://github.com/sindresorhus/p-map#readme","_id":"p-map@7.0.2","_nodeVersion":"18.19.1","_npmVersion":"9.2.0","dist":{"shasum":"7c5119fada4755660f70199a66aa3fe2f85a1fe8","size":5765,"noattachment":false,"key":"/p-map/-/p-map-7.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-map/download/p-map-7.0.2.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-map_7.0.2_1712130830168_0.64139979383085"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-04-03T07:53:50.317Z","publish_time":1712130830317,"_source_registry_name":"default","_cnpm_publish_time":1712130830317},"7.0.1":{"name":"p-map","version":"7.0.1","description":"Map over promises concurrently","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map.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","map","resolved","wait","collection","iterable","iterator","race","fulfilled","async","await","promises","concurrently","concurrency","parallel","bluebird"],"devDependencies":{"ava":"^5.2.0","chalk":"^5.3.0","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":"34006c9222bbea40981b2487bda4ebe5806d7030","bugs":{"url":"https://github.com/sindresorhus/p-map/issues"},"homepage":"https://github.com/sindresorhus/p-map#readme","_id":"p-map@7.0.1","_nodeVersion":"21.2.0","_npmVersion":"9.2.0","dist":{"shasum":"1faf994e597160f7851882926bfccabc1d226f80","size":5760,"noattachment":false,"key":"/p-map/-/p-map-7.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-map/download/p-map-7.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-map_7.0.1_1703637833185_0.8716308436170674"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-27T00:43:53.371Z","publish_time":1703637833371,"_source_registry_name":"default","_cnpm_publish_time":1703637833371},"7.0.0":{"name":"p-map","version":"7.0.0","description":"Map over promises concurrently","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map.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","map","resolved","wait","collection","iterable","iterator","race","fulfilled","async","await","promises","concurrently","concurrency","parallel","bluebird"],"devDependencies":{"ava":"^5.2.0","chalk":"^5.3.0","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":"0039552ae17c76a817fad118914bb76a2130ff92","bugs":{"url":"https://github.com/sindresorhus/p-map/issues"},"homepage":"https://github.com/sindresorhus/p-map#readme","_id":"p-map@7.0.0","_nodeVersion":"20.9.0","_npmVersion":"9.2.0","dist":{"shasum":"757a189703986134d5d34ef7c16cf2f824d19ebe","size":5731,"noattachment":false,"key":"/p-map/-/p-map-7.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-map/download/p-map-7.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-map_7.0.0_1701779133888_0.6177545245541411"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-05T12:25:34.094Z","publish_time":1701779134094,"_source_registry_name":"default","_cnpm_publish_time":1701779134094},"6.0.0":{"name":"p-map","version":"6.0.0","description":"Map over promises concurrently","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map.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":">=16"},"scripts":{"test":"xo && ava && tsd"},"keywords":["promise","map","resolved","wait","collection","iterable","iterator","race","fulfilled","async","await","promises","concurrently","concurrency","parallel","bluebird"],"devDependencies":{"ava":"^5.2.0","delay":"^5.0.0","in-range":"^3.0.0","random-int":"^3.0.0","time-span":"^5.1.0","tsd":"^0.28.1","xo":"^0.54.1"},"types":"./index.d.ts","gitHead":"66b039b20d362c3d508f15b11dd867638b02f75b","bugs":{"url":"https://github.com/sindresorhus/p-map/issues"},"homepage":"https://github.com/sindresorhus/p-map#readme","_id":"p-map@6.0.0","_nodeVersion":"16.16.0","_npmVersion":"9.2.0","dist":{"shasum":"4d9c40d3171632f86c47601b709f4b4acd70fed4","size":5094,"noattachment":false,"key":"/p-map/-/p-map-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-map/download/p-map-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-map_6.0.0_1682154130779_0.22834690413774705"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-22T09:02:10.957Z","publish_time":1682154130957,"_cnpm_publish_time":1682154130957},"5.5.0":{"name":"p-map","version":"5.5.0","description":"Map over promises concurrently","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map.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"},"scripts":{"test":"xo && ava && tsd"},"keywords":["promise","map","resolved","wait","collection","iterable","iterator","race","fulfilled","async","await","promises","concurrently","concurrency","parallel","bluebird"],"dependencies":{"aggregate-error":"^4.0.0"},"devDependencies":{"ava":"^4.1.0","delay":"^5.0.0","in-range":"^3.0.0","random-int":"^3.0.0","time-span":"^5.0.0","tsd":"^0.19.1","xo":"^0.48.0"},"types":"./index.d.ts","gitHead":"a5faf425ad3f871d10b3a18e30ae10d1edc78311","bugs":{"url":"https://github.com/sindresorhus/p-map/issues"},"homepage":"https://github.com/sindresorhus/p-map#readme","_id":"p-map@5.5.0","_nodeVersion":"18.3.0","_npmVersion":"8.3.2","dist":{"shasum":"054ca8ca778dfa4cf3f8db6638ccb5b937266715","size":5395,"noattachment":false,"key":"/p-map/-/p-map-5.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-map/download/p-map-5.5.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-map_5.5.0_1654796983493_0.2026151307062729"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-09T17:53:04.621Z","publish_time":1654796983630,"_cnpm_publish_time":1654796983630},"5.4.0":{"name":"p-map","version":"5.4.0","description":"Map over promises concurrently","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map.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"},"scripts":{"test":"xo && ava && tsd"},"keywords":["promise","map","resolved","wait","collection","iterable","iterator","race","fulfilled","async","await","promises","concurrently","concurrency","parallel","bluebird"],"dependencies":{"aggregate-error":"^4.0.0"},"devDependencies":{"ava":"^4.1.0","delay":"^5.0.0","in-range":"^3.0.0","random-int":"^3.0.0","time-span":"^5.0.0","tsd":"^0.19.1","xo":"^0.48.0"},"types":"./index.d.ts","gitHead":"5ef93c23b20d4caa57c71d7cec695b595a7e9e30","bugs":{"url":"https://github.com/sindresorhus/p-map/issues"},"homepage":"https://github.com/sindresorhus/p-map#readme","_id":"p-map@5.4.0","_nodeVersion":"14.19.2","_npmVersion":"8.3.2","dist":{"shasum":"59b1b931b8c832b5ee5a5cf7274d031e8f4f1624","size":5376,"noattachment":false,"key":"/p-map/-/p-map-5.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-map/download/p-map-5.4.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-map_5.4.0_1652768178064_0.10577513866458466"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-17T07:05:35.566Z","publish_time":1652768178220,"_cnpm_publish_time":1652768178220},"5.3.0":{"name":"p-map","version":"5.3.0","description":"Map over promises concurrently","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map.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"},"scripts":{"test":"xo && ava && tsd"},"keywords":["promise","map","resolved","wait","collection","iterable","iterator","race","fulfilled","async","await","promises","concurrently","concurrency","parallel","bluebird"],"dependencies":{"aggregate-error":"^4.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.14.0","xo":"^0.38.2"},"types":"./index.d.ts","gitHead":"3b62341e0803307b263346566c2ceba30d1be54e","bugs":{"url":"https://github.com/sindresorhus/p-map/issues"},"homepage":"https://github.com/sindresorhus/p-map#readme","_id":"p-map@5.3.0","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"shasum":"2204823bc9f37f17ddc9e7f446293c4530b8a4cf","size":4765,"noattachment":false,"key":"/p-map/-/p-map-5.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-map/download/p-map-5.3.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-map_5.3.0_1635854715965_0.9288814164339345"},"_hasShrinkwrap":false,"publish_time":1635854716074,"_cnpm_publish_time":1635854716074},"5.2.0":{"name":"p-map","version":"5.2.0","description":"Map over promises concurrently","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map.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"},"scripts":{"test":"xo && ava && tsd"},"keywords":["promise","map","resolved","wait","collection","iterable","iterator","race","fulfilled","async","await","promises","concurrently","concurrency","parallel","bluebird"],"dependencies":{"aggregate-error":"^4.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.14.0","xo":"^0.38.2"},"types":"./index.d.ts","gitHead":"e7ca665fa3402b6f3ac743e638a284f1694df0b8","bugs":{"url":"https://github.com/sindresorhus/p-map/issues"},"homepage":"https://github.com/sindresorhus/p-map#readme","_id":"p-map@5.2.0","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"shasum":"21ae8a35dc5f39cc841468cec29af631ee02a2a2","size":4687,"noattachment":false,"key":"/p-map/-/p-map-5.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-map/download/p-map-5.2.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-map_5.2.0_1635319443635_0.06725950542481862"},"_hasShrinkwrap":false,"publish_time":1635319443798,"_cnpm_publish_time":1635319443798},"5.1.0":{"name":"p-map","version":"5.1.0","description":"Map over promises concurrently","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map.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"},"scripts":{"test":"xo && ava && tsd"},"keywords":["promise","map","resolved","wait","collection","iterable","iterator","race","fulfilled","async","await","promises","concurrently","concurrency","parallel","bluebird"],"dependencies":{"aggregate-error":"^4.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.14.0","xo":"^0.38.2"},"gitHead":"c470a485584a34aa9893f219e09d640169a4a93c","bugs":{"url":"https://github.com/sindresorhus/p-map/issues"},"homepage":"https://github.com/sindresorhus/p-map#readme","_id":"p-map@5.1.0","_nodeVersion":"16.2.0","_npmVersion":"7.10.0","dist":{"shasum":"1c31bdfc492910098bdb4e63d099efbdd9b37755","size":3627,"noattachment":false,"key":"/p-map/-/p-map-5.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-map/download/p-map-5.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-map_5.1.0_1627082345398_0.6809119511329844"},"_hasShrinkwrap":false,"publish_time":1627082345567,"_cnpm_publish_time":1627082345567},"5.0.0":{"name":"p-map","version":"5.0.0","description":"Map over promises concurrently","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map.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"},"scripts":{"test":"xo && ava && tsd"},"keywords":["promise","map","resolved","wait","collection","iterable","iterator","race","fulfilled","async","await","promises","concurrently","concurrency","parallel","bluebird"],"dependencies":{"aggregate-error":"^4.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.14.0","xo":"^0.38.2"},"gitHead":"4146ef4abc7b2041b37cf37b69e98bb329243a28","bugs":{"url":"https://github.com/sindresorhus/p-map/issues"},"homepage":"https://github.com/sindresorhus/p-map#readme","_id":"p-map@5.0.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"e042c6e6201aa64183489b6bcadbac0a94a1cfcb","size":3417,"noattachment":false,"key":"/p-map/-/p-map-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-map/download/p-map-5.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-map_5.0.0_1618683099463_0.3556414956388112"},"_hasShrinkwrap":false,"publish_time":1618683099631,"_cnpm_publish_time":1618683099631},"4.0.0":{"name":"p-map","version":"4.0.0","description":"Map over promises concurrently","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map.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","map","resolved","wait","collection","iterable","iterator","race","fulfilled","async","await","promises","concurrently","concurrency","parallel","bluebird"],"dependencies":{"aggregate-error":"^3.0.0"},"devDependencies":{"ava":"^2.2.0","delay":"^4.1.0","in-range":"^2.0.0","random-int":"^2.0.0","time-span":"^3.1.0","tsd":"^0.7.4","xo":"^0.27.2"},"gitHead":"a4b4dec459544d98880bc53a580e53691aff9fa9","bugs":{"url":"https://github.com/sindresorhus/p-map/issues"},"homepage":"https://github.com/sindresorhus/p-map#readme","_id":"p-map@4.0.0","_nodeVersion":"10.18.1","_npmVersion":"6.14.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"bb2f95a5eda2ec168ec9274e06a747c3e2904d2b","size":3443,"noattachment":false,"key":"/p-map/-/p-map-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-map/download/p-map-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-map_4.0.0_1583397765582_0.6466932244877022"},"_hasShrinkwrap":false,"publish_time":1583397765749,"_cnpm_publish_time":1583397765749},"3.0.0":{"name":"p-map","version":"3.0.0","description":"Map over promises concurrently","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["promise","map","resolved","wait","collection","iterable","iterator","race","fulfilled","async","await","promises","concurrently","concurrency","parallel","bluebird"],"dependencies":{"aggregate-error":"^3.0.0"},"devDependencies":{"ava":"^2.2.0","delay":"^4.1.0","in-range":"^2.0.0","random-int":"^2.0.0","time-span":"^3.1.0","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"a8c06732e440214da89c410fa8d0cd74e110868e","bugs":{"url":"https://github.com/sindresorhus/p-map/issues"},"homepage":"https://github.com/sindresorhus/p-map#readme","_id":"p-map@3.0.0","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"d704d9af8a2ba684e2600d9a215983d4141a979d","size":3341,"noattachment":false,"key":"/p-map/-/p-map-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-map/download/p-map-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-map_3.0.0_1563032855528_0.7953198023305246"},"_hasShrinkwrap":false,"publish_time":1563032855679,"_cnpm_publish_time":1563032855679},"2.1.0":{"name":"p-map","version":"2.1.0","description":"Map over promises concurrently","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["promise","map","resolved","wait","collection","iterable","iterator","race","fulfilled","async","await","promises","concurrently","concurrency","parallel","bluebird"],"devDependencies":{"ava":"^1.4.1","delay":"^4.1.0","in-range":"^1.0.0","random-int":"^1.0.0","time-span":"^3.1.0","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"a44286e8c4b63bebeae3526b94dd21779e26c518","bugs":{"url":"https://github.com/sindresorhus/p-map/issues"},"homepage":"https://github.com/sindresorhus/p-map#readme","_id":"p-map@2.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"310928feef9c9ecc65b68b17693018a665cea175","size":3039,"noattachment":false,"key":"/p-map/-/p-map-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-map/download/p-map-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-map_2.1.0_1554564466828_0.6092914198956048"},"_hasShrinkwrap":false,"publish_time":1554564466979,"_cnpm_publish_time":1554564466979},"2.0.0":{"name":"p-map","version":"2.0.0","description":"Map over promises concurrently","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["promise","map","resolved","wait","collection","iterable","iterator","race","fulfilled","async","await","promises","concurrently","concurrency","parallel","bluebird"],"devDependencies":{"ava":"*","delay":"^3.0.0","in-range":"^1.0.0","random-int":"^1.0.0","time-span":"^2.0.0","tsd-check":"^0.2.1","xo":"*"},"gitHead":"3774d3026388f379dfebaa8601c67034adee56cd","bugs":{"url":"https://github.com/sindresorhus/p-map/issues"},"homepage":"https://github.com/sindresorhus/p-map#readme","_id":"p-map@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"be18c5a5adeb8e156460651421aceca56c213a50","size":2941,"noattachment":false,"key":"/p-map/-/p-map-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-map/download/p-map-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-map_2.0.0_1537199959062_0.08655110554165257"},"_hasShrinkwrap":false,"publish_time":1537199959208,"_cnpm_publish_time":1537199959208},"1.2.0":{"name":"p-map","version":"1.2.0","description":"Map over promises concurrently","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["promise","map","resolved","wait","collection","iterable","iterator","race","fulfilled","async","await","promises","concurrently","concurrency","parallel","bluebird"],"devDependencies":{"ava":"*","delay":"^2.0.0","in-range":"^1.0.0","random-int":"^1.0.0","time-span":"^2.0.0","xo":"*"},"gitHead":"e0a1c91c00d5509e9f04c6f0392693a452f385f0","bugs":{"url":"https://github.com/sindresorhus/p-map/issues"},"homepage":"https://github.com/sindresorhus/p-map#readme","_id":"p-map@1.2.0","_npmVersion":"5.4.1","_nodeVersion":"8.4.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"e4e94f311eabbc8633a1e79908165fca26241b6b","size":2545,"noattachment":false,"key":"/p-map/-/p-map-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-map/download/p-map-1.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-map-1.2.0.tgz_1505195035419_0.6017468643840402"},"directories":{},"publish_time":1505195036000,"_hasShrinkwrap":false,"_cnpm_publish_time":1505195036000},"1.1.1":{"name":"p-map","version":"1.1.1","description":"Map over promises concurrently","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["promise","map","resolved","wait","collection","iterable","iterator","race","fulfilled","async","await","promises","concurrently","concurrency","parallel","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":"c61810d78576c1e93e0fec6bb05b6249584dde8d","bugs":{"url":"https://github.com/sindresorhus/p-map/issues"},"homepage":"https://github.com/sindresorhus/p-map#readme","_id":"p-map@1.1.1","_shasum":"05f5e4ae97a068371bc2a5cc86bfbdbc19c4ae7a","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"05f5e4ae97a068371bc2a5cc86bfbdbc19c4ae7a","size":2533,"noattachment":false,"key":"/p-map/-/p-map-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-map/download/p-map-1.1.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/p-map-1.1.1.tgz_1484809158096_0.3943324906285852"},"directories":{},"publish_time":1484809159945,"_cnpm_publish_time":1484809159945,"_hasShrinkwrap":false},"1.1.0":{"name":"p-map","version":"1.1.0","description":"Map over promises concurrently","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["promise","map","resolved","wait","collection","iterable","iterator","race","fulfilled","async","await","promises","concurrently","concurrency","parallel","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":"ce04bc09745da7fcd7f223fe893fa5a29f7a38c7","bugs":{"url":"https://github.com/sindresorhus/p-map/issues"},"homepage":"https://github.com/sindresorhus/p-map#readme","_id":"p-map@1.1.0","_shasum":"8fc54b3057cca902d223a2950ddd76ffa6582e8d","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.6.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"8fc54b3057cca902d223a2950ddd76ffa6582e8d","size":2517,"noattachment":false,"key":"/p-map/-/p-map-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-map/download/p-map-1.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/p-map-1.1.0.tgz_1479466185862_0.4718094489071518"},"directories":{},"publish_time":1479466187847,"_cnpm_publish_time":1479466187847,"_hasShrinkwrap":false},"1.0.0":{"name":"p-map","version":"1.0.0","description":"Map over promises concurrently","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["promise","map","resolved","wait","collection","iterable","iterator","race","fulfilled","async","await","promises","concurrently","concurrency","parallel","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":"fef15cfe481989afdd1728ba02b64b7ca6552462","bugs":{"url":"https://github.com/sindresorhus/p-map/issues"},"homepage":"https://github.com/sindresorhus/p-map#readme","_id":"p-map@1.0.0","_shasum":"fecf578d8f46c4f4254eb3631e56d031ad30e4fd","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"fecf578d8f46c4f4254eb3631e56d031ad30e4fd","size":2462,"noattachment":false,"key":"/p-map/-/p-map-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-map/download/p-map-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/p-map-1.0.0.tgz_1477021449093_0.09832565626129508"},"directories":{},"publish_time":1477021451145,"_cnpm_publish_time":1477021451145,"_hasShrinkwrap":false}},"readme":"# p-map\n\n> Map over promises concurrently\n\nUseful when you need to run promise-returning & async functions multiple times with different inputs concurrently.\n\nThis is different from `Promise.all()` in that you can control the concurrency and also decide whether or not to stop iterating when there's an error.\n\n## Install\n\n```sh\nnpm install p-map\n```\n\n## Usage\n\n```js\nimport pMap from 'p-map';\nimport got from 'got';\n\nconst sites = [\n\tgetWebsiteFromUsername('sindresorhus'), //=> Promise\n\t'https://avajs.dev',\n\t'https://github.com'\n];\n\nconst mapper = async site => {\n\tconst {requestUrl} = await got.head(site);\n\treturn requestUrl;\n};\n\nconst result = await pMap(sites, mapper, {concurrency: 2});\n\nconsole.log(result);\n//=> ['https://sindresorhus.com/', 'https://avajs.dev/', 'https://github.com/']\n```\n\n## API\n\n### pMap(input, mapper, options?)\n\nReturns a `Promise` that is fulfilled when all promises in `input` and ones returned from `mapper` are fulfilled, or rejects if any of the promises reject. The fulfilled value is an `Array` of the fulfilled values returned from `mapper` in `input` order.\n\n### pMapIterable(input, mapper, options?)\n\nReturns an async iterable that streams each return value from `mapper` in order.\n\n```js\nimport {pMapIterable} from 'p-map';\n\n// Multiple posts are fetched concurrently, with limited concurrency and backpressure\nfor await (const post of pMapIterable(postIds, getPostMetadata, {concurrency: 8})) {\n\tconsole.log(post);\n};\n```\n\n#### input\n\nType: `AsyncIterable<Promise<unknown> | unknown> | Iterable<Promise<unknown> | unknown>`\n\nSynchronous or asynchronous iterable that is iterated over concurrently, calling the `mapper` function for each element. Each iterated item is `await`'d before the `mapper` is invoked so the iterable may return a `Promise` that resolves to an item.\n\nAsynchronous iterables (different from synchronous iterables that return `Promise` that resolves to an item) can be used when the next item may not be ready without waiting for an asynchronous process to complete and/or the end of the iterable may be reached after the asynchronous process completes. For example, reading from a remote queue when the queue has reached empty, or reading lines from a stream.\n\n#### mapper(element, index)\n\nType: `Function`\n\nExpected to return a `Promise` or value.\n\n#### options\n\nType: `object`\n\n##### concurrency\n\nType: `number` *(Integer)*\\\nDefault: `Infinity`\\\nMinimum: `1`\n\nNumber of concurrently pending promises returned by `mapper`.\n\n##### backpressure\n\n**Only for `pMapIterable`**\n\nType: `number` *(Integer)*\\\nDefault: `options.concurrency`\\\nMinimum: `options.concurrency`\n\nMaximum number of promises returned by `mapper` that have resolved but not yet collected by the consumer of the async iterable. Calls to `mapper` will be limited so that there is never too much backpressure.\n\nUseful whenever you are consuming the iterable slower than what the mapper function can produce concurrently. For example, to avoid making an overwhelming number of HTTP requests if you are saving each of the results to a database.\n\n##### stopOnError\n\n**Only for `pMap`**\n\nType: `boolean`\\\nDefault: `true`\n\nWhen `true`, the first mapper rejection will be rejected back to the consumer.\n\nWhen `false`, instead of stopping when a promise rejects, it will wait for all the promises to settle and then reject with an [`AggregateError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError) containing all the errors from the rejected promises.\n\nCaveat: When `true`, any already-started async mappers will continue to run until they resolve or reject. In the case of infinite concurrency with sync iterables, *all* mappers are invoked on startup and will continue after the first rejection. [Issue #51](https://github.com/sindresorhus/p-map/issues/51) can be implemented for abort control.\n\n##### signal\n\n**Only for `pMap`**\n\nType: [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal)\n\nYou can abort the promises using [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).\n\n```js\nimport pMap from 'p-map';\nimport delay from 'delay';\n\nconst abortController = new AbortController();\n\nsetTimeout(() => {\n\tabortController.abort();\n}, 500);\n\nconst mapper = async value => value;\n\nawait pMap([delay(1000), delay(1000)], mapper, {signal: abortController.signal});\n// Throws AbortError (DOMException) after 500 ms.\n```\n\n### pMapSkip\n\nReturn this value from a `mapper` function to skip including the value in the returned array.\n\n```js\nimport pMap, {pMapSkip} from 'p-map';\nimport got from 'got';\n\nconst sites = [\n\tgetWebsiteFromUsername('sindresorhus'), //=> Promise\n\t'https://avajs.dev',\n\t'https://example.invalid',\n\t'https://github.com'\n];\n\nconst mapper = async site => {\n\ttry {\n\t\tconst {requestUrl} = await got.head(site);\n\t\treturn requestUrl;\n\t} catch {\n\t\treturn pMapSkip;\n\t}\n};\n\nconst result = await pMap(sites, mapper, {concurrency: 2});\n\nconsole.log(result);\n//=> ['https://sindresorhus.com/', 'https://avajs.dev/', 'https://github.com/']\n```\n\n## Related\n\n- [p-all](https://github.com/sindresorhus/p-all) - Run promise-returning & async functions concurrently with optional limited concurrency\n- [p-filter](https://github.com/sindresorhus/p-filter) - Filter promises concurrently\n- [p-times](https://github.com/sindresorhus/p-times) - Run promise-returning & async functions a specific number of times concurrently\n- [p-props](https://github.com/sindresorhus/p-props) - Like `Promise.all()` but for `Map` and `Object`\n- [p-map-series](https://github.com/sindresorhus/p-map-series) - Map over promises serially\n- [More…](https://github.com/sindresorhus/promise-fun)\n","_attachments":{},"homepage":"https://github.com/sindresorhus/p-map#readme","bugs":{"url":"https://github.com/sindresorhus/p-map/issues"},"license":"MIT"}