{"_id":"p-series","_rev":"8-fc93af77e56fa518da764629849b72e4","name":"p-series","description":"Run promise-returning & async functions in series","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"p-series","version":"1.0.0","description":"Run promise-returning & async functions in series","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-series.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["promise","series","serial","sequence","sequential","ordered","task","tasks","array","collection","iterable","iterator","async","await","promises","bluebird"],"dependencies":{"p-reduce":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"5941788d48d6d8eb8fea2056aee78fd4ac6fc222","bugs":{"url":"https://github.com/sindresorhus/p-series/issues"},"homepage":"https://github.com/sindresorhus/p-series#readme","_id":"p-series@1.0.0","_shasum":"7ec9e7b4406cc32066298a6f9860e55e91b36e07","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"7ec9e7b4406cc32066298a6f9860e55e91b36e07","tarball":"https://registry.npmjs.org/p-series/-/p-series-1.0.0.tgz","integrity":"sha512-1kKlotoIO9IS7RUMNUiEmKoWnrvxmauHLkgIgH1vrjeqIxnXjElIv8GbfOo0hIMXfrGEGg+jYpexueEj9jY+/A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDvoL+C+xQzglE0qCrdon71P+HzwhMW6D8v4DtWTLuXwIhAKJIrwFP/cVEQuCqBo6gVLdfqvWd5PVMHWh4E2OgumDY"}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/p-series-1.0.0.tgz_1479800293552_0.3972700475715101"},"directories":{}},"1.1.0":{"name":"p-series","version":"1.1.0","description":"Run promise-returning & async functions in series","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-series.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["promise","series","serial","sequence","sequential","ordered","task","tasks","array","collection","iterable","iterator","async","await","promises","bluebird"],"dependencies":{"@sindresorhus/is":"^0.7.0","p-reduce":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"77c754243e6f8f6ee8fd41e2f14a6707a1732000","bugs":{"url":"https://github.com/sindresorhus/p-series/issues"},"homepage":"https://github.com/sindresorhus/p-series#readme","_id":"p-series@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-356covArc9UCfj2twY/sxCJKGMzzO+pJJtucizsPC6aS1xKSTBc9PQrQhvFR3+7F+fa2KBKdJjdIcv6NEWDcIQ==","shasum":"f2d8522cdfd58b464eb9685651d465037ee3c957","tarball":"https://registry.npmjs.org/p-series/-/p-series-1.1.0.tgz","fileCount":4,"unpackedSize":3945,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBVrPtCYBIiLq6DN9Wm3m8f6voav9SoVcHuKVPkvzE9qAiAJReLHlxq9sEIpsqxi2AQjU7jcLEPzCK+C7ixscgyxQw=="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-series_1.1.0_1520341485847_0.718811096826756"},"_hasShrinkwrap":false},"2.0.0":{"name":"p-series","version":"2.0.0","description":"Run promise-returning & async functions in series","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-series.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["promise","series","serial","sequence","sequential","ordered","task","tasks","array","collection","iterable","iterator","async","await","promises","bluebird"],"dependencies":{"@sindresorhus/is":"^0.15.0","p-reduce":"^2.0.0"},"devDependencies":{"ava":"^1.3.1","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"3243708d2639ce577c3f2536be0d4e773145f0a6","bugs":{"url":"https://github.com/sindresorhus/p-series/issues"},"homepage":"https://github.com/sindresorhus/p-series#readme","_id":"p-series@2.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-Wtk9lIcWrZXujgTFUtOo2Y913Y5zGAFPg8yngbA8Le8n5hsv0Qfuhg9DhtMi22vwBU6SmTqvHgTvW8rsl72ekA==","shasum":"9eb2f2401fa0e64743c11a6b88676d36dd21a840","tarball":"https://registry.npmjs.org/p-series/-/p-series-2.0.0.tgz","fileCount":5,"unpackedSize":4596,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJch3eFCRA9TVsSAnZWagAAqxAQAJw5iClLyL6+wh1H7SGD\n7fLazk3xhAl1NnbYB/jmsSR1Rlpm76njL8ZF3VUJcpdqhakj/WtPnFLPJxVP\nNZn1fUQTbWW0ADt6TR2BRV2GDwWReGKvKk5QTaOe11fWQOmyZYRyIFa1LM4/\nS69ahbhvfJivUcsVgzcxTKTSvF6RaYD317/RsPgOFXU/Y7SYHoYWIlKCECqa\n6QFhW+INCMelCy5Jdf2yJC9X3yh1J4sU9Esx7Hj/9Opmu7unrp/iSIgW8pmd\nzL20+R5HosBKeF/sT59TGqR9Ti+bcWI0XFgZk3Rzhk2s4PU49XxsnwyghBxL\nBKoIWZ4S9YnNXgfIB6lGbYePz3kcvg6/gQL+PQpIWL66jQ2IZB6d/YIK+157\nWKBsJW6ntKOIRc7ggu+OMFIV6tu+pUC+SO2mMD3E1IbW1XBazTIbbr6ofWIp\nYZmiEr1FSU9BXRQQwPRunuDyejeiXcx79e535MwrC3ruhkZG+LG52Nis+QIX\nl/oKcmmWgBonmnDQ+jXFQfYCLDWIWD40QfZjbhO5ipggybx/CQji2QXSMJn3\nG3pw0O5EQHbQqfy5l1kl+SjCA8lo78FZJo/zoKaqtWg8Hzb22dxvVuhOya4f\n9O5fZe/G2gjsPBG6zu8GVmWA53VURRwdqmEMtY4ucWfGcYeiE/K2OfWmwWyV\nHOn+\r\n=d3Fw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAXjZmuM7+0Aj/nWlpa5v+ZdhrykScoMxFPQBr+xI2PjAiAxdGKNlSr9Ob0F8oHCtUY/2DUcbbwgx4G4Ze1CBV1aWw=="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-series_2.0.0_1552381828812_0.388071873278673"},"_hasShrinkwrap":false},"2.1.0":{"name":"p-series","version":"2.1.0","description":"Run promise-returning & async functions in series","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-series.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["promise","series","serial","sequence","sequential","ordered","task","tasks","array","collection","iterable","iterator","async","await","promises","bluebird"],"dependencies":{"@sindresorhus/is":"^0.15.0","p-reduce":"^2.1.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"4077b6b90507c195ffbc37a9e759715e4c360fc4","bugs":{"url":"https://github.com/sindresorhus/p-series/issues"},"homepage":"https://github.com/sindresorhus/p-series#readme","_id":"p-series@2.1.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-vEAnkG1ikRT1kPBrKwpj7AFYQkd1hjt/oHeppxtpoPxy5gEt+OWiHZJN3tMqvFa+UJfVwO3lwHoMUpMYBLKnaQ==","shasum":"7035b3a81e2644d4ba407c1ebbc21776e353fa29","tarball":"https://registry.npmjs.org/p-series/-/p-series-2.1.0.tgz","fileCount":5,"unpackedSize":5169,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcp8tdCRA9TVsSAnZWagAA1aMP/2QKfHNGPoPaQMeJJf1a\nMILsdiTum39sBRVQuROLgNhBIZiJCy54rwIGnvBmn0aZlvC1dYz2fHxmGc1z\nS+r2tE9V3slIVNUMWQveqIsbBZ5muezROEMEMDseYl5Wjz8+dhE75H8mQXUN\n58+PdY0WPVYyqnmSToAXbWLY3TCqMAELQPwpYpWt5bWlMspcBZYW836cnoE3\nD544kowFTkN1UbeJZOPFr2HY4b+W14KXIwFnMEUkYQbNbyqCyNHp9u9L9YRh\nLBGmAHHflT1J4L6zM+qx1F+gNdmsXeXohqx+Ealv2wheX9ZyRNNL4FncU9xg\nRqbjmIkREcYdt4PGjKA+FU3aCd2m3N58UnCeIWXkcJD2HCKzhy0wwo12dARA\nHUXzUCHjPicPvqxOOKCwXk+soKVoeydAjteKCqJMv12MpPCaSz7qMYrWWM2j\nlNhUhn1el7+kDO3X+hBvTh4S0VHlTwsDsH+QVSy2i/ibdXtmBBedPRh+eteK\nkIphRpyNqDcBQB/XIUurJYrRgFO2vB2Ugw7xeEWGpbDoJT+o7p+rojSuDpcD\nRsJLuJbY7BvCCqriwaVHbaLmkEbxC5+Yco5+3MFE8T8Mg0WE5w6hV/YQofdf\nsbTCu48ZqdZD6rcWKD65UgejKWBaSqjDIv2nBPaTLVS+H70L3rqsLhicPrSE\nc+dy\r\n=4Bpo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3UIpmvABZsfdRxUX4aDtw79N56G6t5yIBi8s4eGjbFwIhAO+RJJSxXHkRv7XA8E8zaOchpQyegOWEO9C5M960M92y"}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-series_2.1.0_1554500444088_0.6304887927230405"},"_hasShrinkwrap":false},"3.0.0":{"name":"p-series","version":"3.0.0","description":"Run promise-returning & async functions in series","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-series.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","series","serial","sequence","sequential","ordered","task","tasks","array","collection","iterable","iterator","async","await","promises","bluebird"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"212bcf2a0712af8451f90c72f2b2b8006b1c7f60","bugs":{"url":"https://github.com/sindresorhus/p-series/issues"},"homepage":"https://github.com/sindresorhus/p-series#readme","_id":"p-series@3.0.0","_nodeVersion":"12.22.1","_npmVersion":"7.10.0","dist":{"integrity":"sha512-geaabIwiqy+jN4vuJROl1rpMJT/myHAMAfdubPQGJT3Grr8td+ogWvTk2qLsNlhYXcoZZAfl01pfq7lK3/gYKQ==","shasum":"ca5669abbc4342a48f5475d4d7c4c52442a4e48c","tarball":"https://registry.npmjs.org/p-series/-/p-series-3.0.0.tgz","fileCount":5,"unpackedSize":4610,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFa9nCRA9TVsSAnZWagAAa+8P+wecTbsB5gcZQAA0ZpVF\nzoft44i1friV8Nv67MngBQX1JLBqv4dJON0LcdYWWSE9BYbJEOZ+JTjGfLov\n3aiF6I3xewB+EmH2Lelx6AglgD1P8RZQAUxs8TOS/kaLaXxVGZ7vIJXmYqVx\n8Mi+smUY95OxtE1g1QsWzXCs1jffIt+YN74jj+IOckUHWdNS3dHoA3OamVPM\nzNxrpYdslctrPDAhx3RoDdeO3huGGL7U9sHCELfrCIrPY/IQavaRo5qqR8ZS\nkoHw2/t8nS6gcVF81YvWPPLUQN5/2cJV7OoHaRb7IRJ/DMt8AXIml7PFT6AH\nANzgXjmusSlD5nR63HXpBro6iMu3XsS7O1bi+QpplJoIKz4yZRN9f9QkIVUN\nOTh4qejSm/ekVvK4KjiEEBnUZMf0GaILOXNUESCfaWvzRBBXU2vGt5czSy0o\nUBywaxIiFjMpGfnZjPpoX2ePFXXAXF3so+sHWUjheLVO8UQ5OdiFVRggc5Ry\ngQplm5KT/5cNNoX1qY1+uHaLTNccuu9fEEvh5D3wBLz+zA7oLTGCRaEUHTp/\nKlBFeQKDbbkxAxH0qz88Vmub8qTCIRI/tNXM0KeRQlSX3j88VeU94CK/iipq\n+mcEAMy7m/rW57gVWQ6NRXBqvcKd7LLCtq6t/IriHMT/l/YC3Pl3VcZuNprI\nBWdL\r\n=ZARK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYEuE3J4BGGLXK0vvYw8T11e7Me2XL8g0LnKGcyOXUqQIhALr12bc5mWrSRUuVk1T4dcIwAj7gVEMNsrd3U6uzECq0"}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-series_3.0.0_1628811111492_0.5648683407803234"},"_hasShrinkwrap":false}},"readme":"# p-series\n\n> Run promise-returning & async functions in series\n\n*Note:* You can just use `await` in a for-loop to get the same behavior. This package was useful before async/await existed.\n\nIf you're doing the same work in each function, use [`p-each-series`](https://github.com/sindresorhus/p-each-series) instead.\n\nSee [`p-all`](https://github.com/sindresorhus/p-all) for a concurrent counterpart.\n\n## Install\n\n```\n$ npm install p-series\n```\n\n## Usage\n\n```js\nimport pSeries from 'p-series';\nimport got from 'got';\n\nconst tasks = [\n\t() => got('https://sindresorhus.com'),\n\t() => checkSomething(),\n\t() => doSomethingElse()\n];\n\nconsole.log(await pSeries(tasks));\n```\n\n## API\n\n### pSeries(tasks)\n\nReturns a `Promise` that is fulfilled when all promises returned from calling the functions in `tasks` are fulfilled, or rejects if any of the promises reject. The fulfilled value is an `Array` of the fulfilled values.\n\n#### tasks\n\nType: `Iterable<Function>`\n\nFunctions are expected to return a value. If a Promise is returned, it's awaited before continuing with the next task.\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-waterfall](https://github.com/sindresorhus/p-waterfall) - Run promise-returning & async functions in series, each passing its result to the next\n- [p-each-series](https://github.com/sindresorhus/p-each-series) - Iterate over promises serially\n- [More…](https://github.com/sindresorhus/promise-fun)\n","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"time":{"modified":"2022-06-23T05:51:48.678Z","created":"2016-11-22T07:38:13.774Z","1.0.0":"2016-11-22T07:38:13.774Z","1.1.0":"2018-03-06T13:04:45.924Z","2.0.0":"2019-03-12T09:10:28.946Z","2.1.0":"2019-04-05T21:40:44.269Z","3.0.0":"2021-08-12T23:31:51.690Z"},"homepage":"https://github.com/sindresorhus/p-series#readme","keywords":["promise","series","serial","sequence","sequential","ordered","task","tasks","array","collection","iterable","iterator","async","await","promises","bluebird"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-series.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/p-series/issues"},"license":"MIT","readmeFilename":"readme.md"}