{"_id":"p-settle","_rev":"4647293","name":"p-settle","description":"Settle promises concurrently and get their fulfillment value or rejection reason with optional limited concurrency","dist-tags":{"latest":"5.2.1"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2026-04-10T20:21:56.000Z","created":"2016-10-21T06:28:38.150Z","5.2.1":"2026-04-11T03:44:33.675Z","5.2.0":"2025-09-10T16:38:07.207Z","5.1.1":"2023-10-09T19:38:24.948Z","5.1.0":"2022-07-27T22:24:34.287Z","5.0.0":"2021-08-13T00:00:47.991Z","4.1.1":"2020-05-29T08:07:35.109Z","4.1.0":"2020-05-21T06:09:56.893Z","4.0.1":"2020-03-29T08:06:57.446Z","4.0.0":"2020-03-05T12:00:20.599Z","3.1.0":"2019-04-03T05:18:10.921Z","3.0.0":"2019-03-19T04:33:56.992Z","2.1.0":"2018-03-31T11:49:11.184Z","2.0.0":"2016-11-26T05:29:25.683Z","1.1.0":"2016-11-25T06:08:07.003Z","1.0.0":"2016-10-21T06:28:38.150Z"},"users":{"rocket0191":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-settle.git"},"versions":{"5.2.1":{"name":"p-settle","version":"5.2.1","description":"Settle promises concurrently and get their fulfillment value or rejection reason with optional limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-settle.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","types":"./index.d.ts","sideEffects":false,"engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"//test":"xo && ava && tsd","test":"ava && tsd"},"keywords":["promise","settle","settled","resolved","iterator","fulfill","reject","fulfilled","rejected","reflect","inspect","error","async","await","promises","concurrently","concurrency","parallel","bluebird"],"dependencies":{"p-limit":"^4.0.0","p-reflect":"^3.1.0"},"devDependencies":{"ava":"^4.3.1","delay":"^5.0.0","in-range":"^3.0.0","time-span":"^5.0.0","tsd":"^0.21.0","xo":"^0.51.0"},"gitHead":"5cf4f20aa377099ade677e012a0150205d044db7","_id":"p-settle@5.2.1","bugs":{"url":"https://github.com/sindresorhus/p-settle/issues"},"homepage":"https://github.com/sindresorhus/p-settle#readme","_nodeVersion":"25.8.0","_npmVersion":"11.12.0","dist":{"shasum":"95128d60efa2ec7bd3536a4a39846ebfec895b6e","size":3386,"noattachment":false,"key":"/p-settle/-/p-settle-5.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-settle/download/p-settle-5.2.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-settle_5.2.1_1775879073542_0.6922066089037611"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-04-11T03:44:33.675Z","publish_time":1775879073675,"_source_registry_name":"default","_cnpm_publish_time":1775879073675},"5.2.0":{"name":"p-settle","version":"5.2.0","description":"Settle promises concurrently and get their fulfillment value or rejection reason with optional limited concurrency","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-settle.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","types":"./index.d.ts","sideEffects":false,"engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"//test":"xo && ava && tsd","test":"ava && tsd"},"keywords":["promise","settle","settled","resolved","iterator","fulfill","reject","fulfilled","rejected","reflect","inspect","error","async","await","promises","concurrently","concurrency","parallel","bluebird"],"dependencies":{"p-limit":"^4.0.0","p-reflect":"^3.1.0"},"devDependencies":{"ava":"^4.3.1","delay":"^5.0.0","in-range":"^3.0.0","time-span":"^5.0.0","tsd":"^0.21.0","xo":"^0.51.0"},"_id":"p-settle@5.2.0","gitHead":"ebda1c37b82cd4c4fadeffa87ae04fb709d00aef","bugs":{"url":"https://github.com/sindresorhus/p-settle/issues"},"homepage":"https://github.com/sindresorhus/p-settle#readme","_nodeVersion":"20.19.1","_npmVersion":"10.9.2","dist":{"shasum":"ee5a3c87b4a6154a85ac09aed2bff8d4ab3ed012","size":3424,"noattachment":false,"key":"/p-settle/-/p-settle-5.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-settle/download/p-settle-5.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-settle_5.2.0_1757522287025_0.5648560200443997"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-10T16:38:07.207Z","publish_time":1757522287207,"_source_registry_name":"default","_cnpm_publish_time":1757522287207},"5.1.1":{"name":"p-settle","version":"5.1.1","description":"Settle promises concurrently and get their fulfillment value or rejection reason","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-settle.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","test":"ava && tsd"},"keywords":["promise","settle","settled","resolved","iterator","fulfill","reject","fulfilled","rejected","reflect","inspect","error","async","await","promises","concurrently","concurrency","parallel","bluebird"],"dependencies":{"p-limit":"^4.0.0","p-reflect":"^3.1.0"},"devDependencies":{"ava":"^4.3.1","delay":"^5.0.0","in-range":"^3.0.0","time-span":"^5.0.0","tsd":"^0.21.0","xo":"^0.51.0"},"types":"./index.d.ts","gitHead":"376f7df8244f89f3758df471603e1d7e57d75df5","bugs":{"url":"https://github.com/sindresorhus/p-settle/issues"},"homepage":"https://github.com/sindresorhus/p-settle#readme","_id":"p-settle@5.1.1","_nodeVersion":"18.16.1","_npmVersion":"9.2.0","dist":{"shasum":"9300778f896d5c01e4361b8ab45d003548574c3e","size":2838,"noattachment":false,"key":"/p-settle/-/p-settle-5.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-settle/download/p-settle-5.1.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-settle_5.1.1_1696880304732_0.6941981765190022"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-09T19:38:24.948Z","publish_time":1696880304948,"_source_registry_name":"default","_cnpm_publish_time":1696880304948},"5.1.0":{"name":"p-settle","version":"5.1.0","description":"Settle promises concurrently and get their fulfillment value or rejection reason","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-settle.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","settle","settled","resolved","iterator","fulfill","reject","fulfilled","rejected","reflect","inspect","error","async","await","promises","concurrently","concurrency","parallel","bluebird"],"dependencies":{"p-limit":"^4.0.0","p-reflect":"^3.1.0"},"devDependencies":{"ava":"^4.3.1","delay":"^5.0.0","in-range":"^3.0.0","time-span":"^5.0.0","tsd":"^0.21.0","xo":"^0.51.0"},"types":"./index.d.ts","gitHead":"a1c25286e62fd28b50abab878385c0010da11b3b","bugs":{"url":"https://github.com/sindresorhus/p-settle/issues"},"homepage":"https://github.com/sindresorhus/p-settle#readme","_id":"p-settle@5.1.0","_nodeVersion":"12.22.1","_npmVersion":"8.3.2","dist":{"shasum":"6abf85e073d6b137b48ed70f8a8d94660454bd17","size":2816,"noattachment":false,"key":"/p-settle/-/p-settle-5.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-settle/download/p-settle-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-settle_5.1.0_1658960674115_0.48122910042663736"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-27T22:24:38.287Z","publish_time":1658960674287,"_cnpm_publish_time":1658960674287},"5.0.0":{"name":"p-settle","version":"5.0.0","description":"Settle promises concurrently and get their fulfillment value or rejection reason","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-settle.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","settle","settled","resolved","iterator","fulfill","reject","fulfilled","rejected","reflect","inspect","error","async","await","promises","concurrently","concurrency","parallel","bluebird"],"dependencies":{"p-limit":"^4.0.0","p-reflect":"^3.0.0"},"devDependencies":{"ava":"^3.15.0","delay":"^5.0.0","in-range":"^3.0.0","time-span":"^5.0.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"ad15fa3ef0f0e892ac78f7f3c08af10d5230d336","bugs":{"url":"https://github.com/sindresorhus/p-settle/issues"},"homepage":"https://github.com/sindresorhus/p-settle#readme","_id":"p-settle@5.0.0","_nodeVersion":"12.22.1","_npmVersion":"7.10.0","dist":{"shasum":"b7008de2f225ed9132317d995ead4c007684024e","size":2695,"noattachment":false,"key":"/p-settle/-/p-settle-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-settle/download/p-settle-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-settle_5.0.0_1628812847842_0.027357978616565415"},"_hasShrinkwrap":false,"publish_time":1628812847991,"_cnpm_publish_time":1628812847991},"4.1.1":{"name":"p-settle","version":"4.1.1","description":"Settle promises concurrently and get their fulfillment value or rejection reason","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-settle.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","settle","settled","resolved","iterator","fulfill","reject","fulfilled","rejected","reflect","inspect","error","async","await","promises","concurrently","concurrency","parallel","bluebird"],"dependencies":{"p-limit":"^2.2.2","p-reflect":"^2.1.0"},"devDependencies":{"ava":"^1.4.1","delay":"^4.1.0","in-range":"^2.0.0","time-span":"^3.1.0","tsd":"^0.11.0","xo":"^0.30.0"},"gitHead":"071020fc6cd7884e74228d546943f53cbc3ca28c","bugs":{"url":"https://github.com/sindresorhus/p-settle/issues"},"homepage":"https://github.com/sindresorhus/p-settle#readme","_id":"p-settle@4.1.1","_nodeVersion":"10.20.1","_npmVersion":"6.14.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"37fbceb2b02c9efc28658fc8d36949922266035f","size":2812,"noattachment":false,"key":"/p-settle/-/p-settle-4.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-settle/download/p-settle-4.1.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-settle_4.1.1_1590739655013_0.40914446897727585"},"_hasShrinkwrap":false,"publish_time":1590739655109,"_cnpm_publish_time":1590739655109},"4.1.0":{"name":"p-settle","version":"4.1.0","description":"Settle promises concurrently and get their fulfillment value or rejection reason","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-settle.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","settle","settled","resolved","iterator","fulfill","reject","fulfilled","rejected","reflect","inspect","error","async","await","promises","concurrently","concurrency","parallel","bluebird"],"dependencies":{"p-limit":"^2.2.2","p-reflect":"^2.1.0"},"devDependencies":{"ava":"^1.4.1","delay":"^4.1.0","in-range":"^2.0.0","time-span":"^3.1.0","tsd":"^0.11.0","xo":"^0.30.0"},"gitHead":"3f03ec5aa76659cfef5eea1e5bfc6e5fdfab37f4","bugs":{"url":"https://github.com/sindresorhus/p-settle/issues"},"homepage":"https://github.com/sindresorhus/p-settle#readme","_id":"p-settle@4.1.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"ae459f812de9599e68ba72d815d1c22376e61e3d","size":2787,"noattachment":false,"key":"/p-settle/-/p-settle-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-settle/download/p-settle-4.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-settle_4.1.0_1590041396792_0.1675498120034029"},"_hasShrinkwrap":false,"publish_time":1590041396893,"_cnpm_publish_time":1590041396893},"4.0.1":{"name":"p-settle","version":"4.0.1","description":"Settle promises concurrently and get their fulfillment value or rejection reason","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-settle.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","settle","settled","resolved","iterator","fulfill","reject","fulfilled","rejected","reflect","inspect","error","async","await","promises","concurrently","concurrency","parallel","bluebird"],"dependencies":{"p-limit":"^2.2.2","p-reflect":"^2.1.0"},"devDependencies":{"ava":"^1.4.1","delay":"^4.1.0","in-range":"^2.0.0","time-span":"^3.1.0","tsd":"^0.11.0","xo":"^0.27.2"},"gitHead":"d622e919a867ef202502f75b11f1b2ba3f27dda1","bugs":{"url":"https://github.com/sindresorhus/p-settle/issues"},"homepage":"https://github.com/sindresorhus/p-settle#readme","_id":"p-settle@4.0.1","_nodeVersion":"10.19.0","_npmVersion":"6.14.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"1179f77eb574c73f8e545a7d840fd167762af1fe","size":2668,"noattachment":false,"key":"/p-settle/-/p-settle-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-settle/download/p-settle-4.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-settle_4.0.1_1585469217291_0.8310048215713421"},"_hasShrinkwrap":false,"publish_time":1585469217446,"_cnpm_publish_time":1585469217446},"4.0.0":{"name":"p-settle","version":"4.0.0","description":"Settle promises concurrently and get their fulfillment value or rejection reason","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-settle.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","settle","settled","resolved","iterator","fulfill","reject","fulfilled","rejected","reflect","inspect","error","async","await","promises","concurrently","concurrency","parallel","bluebird"],"dependencies":{"p-limit":"^2.2.2","p-reflect":"^2.1.0"},"devDependencies":{"ava":"^1.4.1","delay":"^4.1.0","in-range":"^2.0.0","time-span":"^3.1.0","tsd":"^0.11.0","xo":"^0.27.2"},"gitHead":"5cafdb79101eeca944dc4b07a5f8cc95e4ab1ce8","bugs":{"url":"https://github.com/sindresorhus/p-settle/issues"},"homepage":"https://github.com/sindresorhus/p-settle#readme","_id":"p-settle@4.0.0","_nodeVersion":"10.18.1","_npmVersion":"6.14.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"07fb60aded04527eadd617c9fd6801364c4737b8","size":2666,"noattachment":false,"key":"/p-settle/-/p-settle-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-settle/download/p-settle-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-settle_4.0.0_1583409620485_0.9703273947642765"},"_hasShrinkwrap":false,"publish_time":1583409620599,"_cnpm_publish_time":1583409620599},"3.1.0":{"name":"p-settle","version":"3.1.0","description":"Settle promises concurrently and get their fulfillment value or rejection reason","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-settle.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["promise","settle","settled","resolved","iterator","fulfill","reject","fulfilled","rejected","reflect","inspect","error","async","await","promises","concurrently","concurrency","parallel","bluebird"],"dependencies":{"p-limit":"^2.2.0","p-reflect":"^2.0.0"},"devDependencies":{"ava":"^1.4.1","delay":"^4.1.0","mock-require":"^3.0.3","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"ed2986dc03293414adb1211d8f0fcb1e04c63fad","bugs":{"url":"https://github.com/sindresorhus/p-settle/issues"},"homepage":"https://github.com/sindresorhus/p-settle#readme","_id":"p-settle@3.1.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"6194f4f929364a8843be54ced118389b7b9ee017","size":2665,"noattachment":false,"key":"/p-settle/-/p-settle-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-settle/download/p-settle-3.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-settle_3.1.0_1554268690547_0.8972712823974991"},"_hasShrinkwrap":false,"publish_time":1554268690921,"_cnpm_publish_time":1554268690921},"3.0.0":{"name":"p-settle","version":"3.0.0","description":"Settle promises concurrently and get their fulfillment value or rejection reason","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-settle.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["promise","settle","settled","resolved","iterator","fulfill","reject","fulfilled","rejected","reflect","inspect","error","async","await","promises","concurrently","concurrency","parallel","bluebird"],"dependencies":{"p-limit":"^2.2.0","p-reflect":"^2.0.0"},"devDependencies":{"ava":"^1.3.1","delay":"^4.1.0","mock-require":"^3.0.3","tsd-check":"^0.5.0","xo":"^0.24.0"},"gitHead":"9d8ebb4cbc1bc5468ccf2dc8a0a21e8d6479d75b","bugs":{"url":"https://github.com/sindresorhus/p-settle/issues"},"homepage":"https://github.com/sindresorhus/p-settle#readme","_id":"p-settle@3.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4e8b8c27a1db1fd94ad10292801766e331ce7db1","size":2476,"noattachment":false,"key":"/p-settle/-/p-settle-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-settle/download/p-settle-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-settle_3.0.0_1552970036896_0.448094601907969"},"_hasShrinkwrap":false,"publish_time":1552970036992,"_cnpm_publish_time":1552970036992},"2.1.0":{"name":"p-settle","version":"2.1.0","description":"Settle promises concurrently and get their fulfillment value or rejection reason","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-settle.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["promise","settle","settled","resolved","iterator","fulfill","reject","fulfilled","rejected","reflect","inspect","error","async","await","promises","concurrently","concurrency","parallel","bluebird"],"dependencies":{"p-reflect":"^1.0.0","p-limit":"^1.2.0"},"devDependencies":{"ava":"*","delay":"^1.3.1","mock-require":"^3.0.1","xo":"*"},"gitHead":"cf3fa247b51d5be56343d05516fb58aeb60ddc2a","bugs":{"url":"https://github.com/sindresorhus/p-settle/issues"},"homepage":"https://github.com/sindresorhus/p-settle#readme","_id":"p-settle@2.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"5b7161f45f92a3d2e17098dca8ce6bb0d51099ea","size":2165,"noattachment":false,"key":"/p-settle/-/p-settle-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-settle/download/p-settle-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-settle_2.1.0_1522496951087_0.5601052805478941"},"_hasShrinkwrap":false,"publish_time":1522496951184,"_cnpm_publish_time":1522496951184},"2.0.0":{"name":"p-settle","version":"2.0.0","description":"Settle promises concurrently and get their fulfillment value or rejection reason","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-settle.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["promise","settle","settled","resolved","iterator","fulfill","reject","fulfilled","rejected","reflect","inspect","error","async","await","promises","concurrently","concurrency","parallel","bluebird"],"dependencies":{"p-reflect":"^1.0.0"},"devDependencies":{"ava":"*","delay":"^1.3.1","xo":"*"},"xo":{"esnext":true},"gitHead":"5b2fa6d37e2dbe4a18149378ec49ce03f4f22b6b","bugs":{"url":"https://github.com/sindresorhus/p-settle/issues"},"homepage":"https://github.com/sindresorhus/p-settle#readme","_id":"p-settle@2.0.0","_shasum":"b6cda5ab86e7173639164909b526adcc42b87733","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.6.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"b6cda5ab86e7173639164909b526adcc42b87733","size":1952,"noattachment":false,"key":"/p-settle/-/p-settle-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-settle/download/p-settle-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/p-settle-2.0.0.tgz_1480138163881_0.7726492928341031"},"directories":{},"publish_time":1480138165683,"_cnpm_publish_time":1480138165683,"_hasShrinkwrap":false},"1.1.0":{"name":"p-settle","version":"1.1.0","description":"Settle promises concurrently and get their fulfillment value or rejection reason","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-settle.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["promise","settle","settled","resolved","iterator","fulfilled","rejected","reflect","error","async","await","promises","concurrently","concurrency","parallel","bluebird"],"devDependencies":{"ava":"*","delay":"^1.3.1","xo":"*"},"xo":{"esnext":true},"gitHead":"cb13869e92f13477ee6293e079c11e08403b21d9","bugs":{"url":"https://github.com/sindresorhus/p-settle/issues"},"homepage":"https://github.com/sindresorhus/p-settle#readme","_id":"p-settle@1.1.0","_shasum":"b0fb49c8fd5a7ca778a5cb6fff437bff0fe5cec3","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"b0fb49c8fd5a7ca778a5cb6fff437bff0fe5cec3","size":1844,"noattachment":false,"key":"/p-settle/-/p-settle-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-settle/download/p-settle-1.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/p-settle-1.1.0.tgz_1480054086788_0.3980644498951733"},"directories":{},"publish_time":1480054087003,"_cnpm_publish_time":1480054087003,"_hasShrinkwrap":false},"1.0.0":{"name":"p-settle","version":"1.0.0","description":"Settle promises concurrently and get their fulfillment value or rejection reason","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-settle.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["promise","settle","settled","resolved","iterator","fulfilled","rejected","reflect","error","async","await","promises","concurrently","concurrency","parallel","bluebird"],"devDependencies":{"ava":"*","delay":"^1.3.1","xo":"*"},"xo":{"esnext":true},"gitHead":"04031f4b3d103c64203f2620d6afa1b132dde610","bugs":{"url":"https://github.com/sindresorhus/p-settle/issues"},"homepage":"https://github.com/sindresorhus/p-settle#readme","_id":"p-settle@1.0.0","_shasum":"1f83b402c248ab285f37b6dab7bccf28e9e6aed8","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"1f83b402c248ab285f37b6dab7bccf28e9e6aed8","size":1990,"noattachment":false,"key":"/p-settle/-/p-settle-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/p-settle/download/p-settle-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/p-settle-1.0.0.tgz_1477031317916_0.20328983617946506"},"directories":{},"publish_time":1477031318150,"_cnpm_publish_time":1477031318150,"_hasShrinkwrap":false}},"readme":"# p-settle\n\n> Settle promises concurrently and get their fulfillment value or rejection reason with optional limited concurrency\n\n## Install\n\n```sh\nnpm install p-settle\n```\n\n## Usage\n\n```js\nimport fs from 'node:fs/promises';\nimport pSettle from 'p-settle';\n\nconst files = [\n\t'a.txt',\n\t'b.txt' // Doesn't exist\n].map(filename => fs.readFile(filename, 'utf8'));\n\nconsole.log(await pSettle(files));\n/*\n[\n\t{\n\t\tstatus: 'fulfilled',\n\t\tvalue: '????',\n\t\tisFulfilled: true,\n\t\tisRejected: false,\n\t},\n\t{\n\t\tstatus: 'rejected',\n\t\treason: [Error: ENOENT: no such file or directory, open 'b.txt'],\n\t\tisFulfilled: false,\n\t\tisRejected: true,\n\t}\n]\n*/\n```\n\nWith a `mapper` function:\n\n```js\nimport fs from 'node:fs/promises';\nimport pSettle from 'p-settle';\n\nconst files = ['a.txt', 'b.txt']; // Filenames\n\nconsole.log(await pSettle(files, {\n\tmapper: filename => fs.readFile(filename, 'utf8'),\n\tconcurrency: 2\n}));\n/*\n[\n\t{\n\t\tstatus: 'fulfilled',\n\t\tvalue: '????',\n\t\tisFulfilled: true,\n\t\tisRejected: false,\n\t},\n\t{\n\t\tstatus: 'rejected',\n\t\treason: [Error: ENOENT: no such file or directory, open 'b.txt'],\n\t\tisFulfilled: false,\n\t\tisRejected: true,\n\t}\n]\n*/\n```\n\n## API\n\n### pSettle(array, options?)\n\nReturns a `Promise<object[]>` that is fulfilled when all promises from the `array` argument are settled.\n\nThe objects in the array have the following properties:\n\n- `status` *(`'fulfilled'` or `'rejected'`, depending on how the promise resolved)*\n- `value` or `reason` *(Depending on whether the promise fulfilled or rejected)*\n- `isFulfilled`\n- `isRejected`\n\n#### array\n\nType: `Array<ValueType | PromiseLike<ValueType> | ((...args: any[]) => PromiseLike<ValueType>)>`\n\nThe array can contain a mix of any value, promise, and async function. Promises are awaited. Async functions are executed and awaited. The `concurrency` option only works for elements that are async functions.\n\nWhen using the `mapper` option, `array` can be of any type since the `mapper` function will transform each element.\n\n#### options\n\nType: `object`\n\n##### concurrency\n\nType: `number` (Integer)\\\nDefault: `Infinity`\\\nMinimum: `1`\n\nThe number of concurrently pending promises.\n\n**Note:** This only limits concurrency for elements that are async functions, not promises. When using the `mapper` option, concurrency applies to the mapped functions.\n\n##### mapper\n\nType: `Function`\n\nFunction which is called for every item in `array`. Expected to return a promise or value.\n\nThe mapper function receives two arguments:\n- `element` - The current element being processed\n- `index` - The index of the element in the source array\n\nWhen provided, the `mapper` function transforms each element in the array before settling it. This allows you to work with arrays of any type of data.\n\n### isFulfilled(object)\n\nThis is a type guard for TypeScript users.\n\nThis is useful since `await pSettle(promiseArray)` always returns a `PromiseResult[]`. This function can be used to determine whether `PromiseResult` is `PromiseFulfilledResult` or `PromiseRejectedResult`.\n\n### isRejected(object)\n\nThis is a type guard for TypeScript users.\n\nThis is useful since `await pSettle(promiseArray)` always returns a `PromiseResult[]`. This function can be used to determine whether `PromiseResult` is `PromiseRejectedResult` or `PromiseFulfilledResult`.\n\n## Related\n\n- [p-reflect](https://github.com/sindresorhus/p-reflect) - Make a promise always fulfill with its actual fulfillment value or rejection reason\n- [p-map](https://github.com/sindresorhus/p-map) - Map over promises concurrently\n- [More…](https://github.com/sindresorhus/promise-fun)\n","_attachments":{},"homepage":"https://github.com/sindresorhus/p-settle#readme","bugs":{"url":"https://github.com/sindresorhus/p-settle/issues"},"license":"MIT"}