{"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"keywords":["promise","map","collection","iterable","iterator","fulfilled","serial","serially","async","await","promises","bluebird"],"dist-tags":{"latest":"3.0.0"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"description":"Map over promises serially","readme":"# p-map-series\n\n> Map over promises serially\n\nUseful as a side-effect mapper. Use [`p-map`](https://github.com/sindresorhus/p-map) if you don't need side-effects, as it's concurrent.\n\n## Install\n\n```\n$ npm install p-map-series\n```\n\n## Usage\n\n```js\nimport pMapSeries from 'p-map-series';\n\nconst keywords = [\n\tgetTopKeyword() //=> Promise\n\t'rainbow',\n\t'pony'\n];\n\nlet scores = [];\n\nconst mapper = async keyword => {\n\tconst score = await fetchScore(keyword);\n\tscores.push(score);\n\treturn {keyword, score};\n});\n\nconsole.log(await pMapSeries(keywords, mapper));\n/*\n[\n\t{\n\t\tkeyword: 'unicorn',\n\t\tscore: 99\n\t},\n\t{\n\t\tkeyword: 'rainbow',\n\t\tscore: 70\n\t},\n\t{\n\t\tkeyword: 'pony',\n\t\tscore: 79\n\t}\n]\n*/\n```\n\n## API\n\n### pMapSeries(input, mapper)\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 `mapper` created promises fulfillment values.\n\n#### input\n\nType: `Iterable<Promise | unknown>`\n\nMapped over serially in the `mapper` function.\n\n#### mapper(element, index)\n\nType: `Function`\n\nExpected to return a value. If it's a `Promise`, it's awaited before continuing with the next iteration.\n\n## Related\n\n- [p-each-series](https://github.com/sindresorhus/p-each-series) - Iterate over promises serially\n- [p-reduce](https://github.com/sindresorhus/p-reduce) - Reduce a list of values using promises into a promise for a value\n- [p-map](https://github.com/sindresorhus/p-map) - Map over promises concurrently\n- [More…](https://github.com/sindresorhus/promise-fun)\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-p-map-series?utm_source=npm-p-map-series&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map-series.git"},"bugs":{"url":"https://github.com/sindresorhus/p-map-series/issues"},"license":"MIT","versions":{"1.0.0":{"name":"p-map-series","version":"1.0.0","description":"Map over promises serially","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map-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","map","collection","iterable","iterator","fulfilled","serial","serially","async","await","promises","bluebird"],"dependencies":{"p-reduce":"^1.0.0"},"devDependencies":{"ava":"*","delay":"^1.3.1","time-span":"^1.0.0","xo":"*"},"xo":{"esnext":true},"gitHead":"fbaef9ebce16944e28510a05f6928b1f162ea30d","bugs":{"url":"https://github.com/sindresorhus/p-map-series/issues"},"homepage":"https://github.com/sindresorhus/p-map-series#readme","_id":"p-map-series@1.0.0","_shasum":"bf98fe575705658a9e1351befb85ae4c1f07bdca","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.0","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"shasum":"bf98fe575705658a9e1351befb85ae4c1f07bdca","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/p-map-series/-/p-map-series-1.0.0.tgz","integrity":"sha512-4k9LlvY6Bo/1FcIdV33wqZQES0Py+iKISU9Uc8p8AjWoZPnFKMpVIVD3s0EYn4jzLh1I+WeUZkJ0Yoa4Qfw3Kg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEF/2Ba6FQTXjVndq8JDsX52pPgboLIsxFJJnpZTB3aOAiB+zxP0kcMei6Qc/w0awiTu4KZB4I4WZM+OQwfq5QLH3A=="}]},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/p-map-series-1.0.0.tgz_1477024551917_0.27259076246991754"},"directories":{}},"2.0.0":{"name":"p-map-series","version":"2.0.0","description":"Map over promises serially","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map-series.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["promise","map","collection","iterable","iterator","fulfilled","serial","serially","async","await","promises","bluebird"],"devDependencies":{"ava":"^1.3.1","delay":"^4.1.0","time-span":"^3.0.0","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"23e6cf899da2bbfa25846cbbb9cb9e77e4ba331a","bugs":{"url":"https://github.com/sindresorhus/p-map-series/issues"},"homepage":"https://github.com/sindresorhus/p-map-series#readme","_id":"p-map-series@2.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-nQEtKwL3aEaCRHeHBnMj2kWnDGLSUZUEtf7LHlrzm6i0dMEiSahsuRDf37yTtO+BpMhcHPWEjLvnDD0YUIZ0FA==","shasum":"c9bb0d98c0093cbfa27187781bf593069bc9ed08","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/p-map-series/-/p-map-series-2.0.0.tgz","fileCount":5,"unpackedSize":4584,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJci1wyCRA9TVsSAnZWagAAAGgP/3S0IHDyj4xyPgC9ThWg\nUlEcvl1ff5MOMMbpNwm+p5gXDZCxNCuGFbTOH8FDU78BzXNcskIIBLHftz6t\n5BjbYK9fA+o0W7mp261P0wUolrFFyAMB0BiJeqLsMFnwGw4uFCfLeRNz0ckh\nrHwNyvBfs+FthXgdGWYhO81btZqb2Z4CixJyOY7GC63L4ZC3/kpD93ap+4in\nmpi4/0RPOFIsYSlxBXDNBmE/mrNjPHMRrsrxCdAiiMPXx/SmSzZOtke162L3\nZl1hYUpAMwGctlaM+3nAwSrekhU9f+4okRdRFh9hOFf+T5blCS4SPv6MsenL\nq1bLLBTTT+UPTaYxis8xbSp4tW0iSdxtnGvFdUwxv25sf/+TLngAijtvUe+5\n7zCmB8HmNRXGZsNjEtj6aV6W0WDePs0ZB+0MVFVRoo/MzMUoHpFH1VkAUxf/\nRUdg2yur4ft4vpzgvyi2DWc3uwry8lwpMYGV/6x0DZ05KCDSqXuWAbG7cQTq\nCqeDIY99p1Df9Jz/pym3k/bBmhnm6F9AXbZwIV8Qr1KoTebP1GUXOfeE3Kna\ngP1xdonJOwvR4Yf3QgchDNDDl8jzPpKvhat/Sn9RjZCCNUwxlKSiW6oJnrWi\nQM2xVwt2XZvGo1kwKmlBfEY7fUbakMm1jW3m/MmV/WH6gWmMELSqweWQnmXA\nONb6\r\n=Txxb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSTwJ8+BDbl9RVM56j1gsRPyW6G4qf1+3VyiJRVzNizQIgctsNcpgTX0GVwiPny1BSkB6Cangtn0xGbsP2O03Vc30="}]},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-map-series_2.0.0_1552636977459_0.015901539918462326"},"_hasShrinkwrap":false},"2.1.0":{"name":"p-map-series","version":"2.1.0","description":"Map over promises serially","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map-series.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["promise","map","collection","iterable","iterator","fulfilled","serial","serially","async","await","promises","bluebird"],"devDependencies":{"ava":"^1.4.1","delay":"^4.1.0","time-span":"^3.0.0","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"86caaee6bb1bc07c280974468b92d5012d8f4a12","bugs":{"url":"https://github.com/sindresorhus/p-map-series/issues"},"homepage":"https://github.com/sindresorhus/p-map-series#readme","_id":"p-map-series@2.1.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-RpYIIK1zXSNEOdwxcfe7FdvGcs7+y5n8rifMhMNWvaxRNMPINJHF5GDeuVxWqnfrcHPSCnp7Oo5yNXHId9Av2Q==","shasum":"7560d4c452d9da0c07e692fdbfe6e2c81a2a91f2","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/p-map-series/-/p-map-series-2.1.0.tgz","fileCount":5,"unpackedSize":5628,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcpEJqCRA9TVsSAnZWagAA/a4P/0fwrAqgiMYullDvv0Xg\nHD9ZrvK1KIIZB/TcoSAnMpqJQyi2eakLGhByeWItlrJO10zH2kdzTGzYNpH0\n41UBYfdxCjxq+DGabh07TVvlDwdQ3DDwktEaxDF5PiEoOyEXQcqA0oFST40c\nnW4bR9judZFqNSr9MULDt2afr1owxd/ht94tZWW43a34E4l1Rq37uzDmw5EK\n2Y1OTiuWUWT318GyRrGY6F6/yPOFcjH2ZSnmK5+IZNdxRVeZJTVuyrXGrTFb\nsWssH0xhejKvkp6b2KO2BKXF4efo6GdkcAuPmMZ/bH+bjsj6XD+jtdrD3PxS\n402zOTepNwEfeP5nW83hgShqE2ab2XHOLkU4AnFgQy/mc5zBCiIMys+CGARk\n0J1xRjIrHn794wPkDb4f3/UZifigoHnG861zLnIW2mUe3VR83bvmVgFmSp5k\nqkz4vU2v+5f21p/idbWuKUQ0WcG6puAg++NCVONuMof+wYMTeoSnRQScF+4d\n765uPBZGXPGXd/1Ram18KG+6HCJ2ooN+PGgjbcrhzlz5+FRJNh+zSxJPYmtM\nTfNMBeKs6WiNIUTKFAgj4tyiwImVuC3eytZvdSzExkd3ls0RctHkCCjU9hlV\npBUfG7xW0RcXo5GzYA72qc6Ff2JqJUnhhhyj3TPPOHvDbe4y1CagoYeWRAPh\n4CxA\r\n=nnLN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCX0e7Q31px2Z/2siL3762S5XyUSG8HXfR4CoandTadYQIgR3qGMw5eO9mEDDcoY/uWOz9bY+SfGD86+0JEqmVeh2k="}]},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-map-series_2.1.0_1554268777469_0.18405653710035752"},"_hasShrinkwrap":false},"3.0.0":{"name":"p-map-series","version":"3.0.0","description":"Map over promises serially","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-map-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"},"scripts":{"test":"xo && ava && tsd"},"keywords":["promise","map","collection","iterable","iterator","fulfilled","serial","serially","async","await","promises","bluebird"],"devDependencies":{"ava":"^3.15.0","delay":"^5.0.0","time-span":"^4.0.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"bc1b9f5e19ed62363bff3d7dc5ecc1fd820ccb51","bugs":{"url":"https://github.com/sindresorhus/p-map-series/issues"},"homepage":"https://github.com/sindresorhus/p-map-series#readme","_id":"p-map-series@3.0.0","_nodeVersion":"15.12.0","_npmVersion":"6.14.10","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-/oSZlzK3Chrlrx+LFkiuMzWi2k2aEfIP8V5LandUN3/XRhUlxM1R0Th/xM6SKgjTXnIbZR9GkexTLiar2nKUeg==","shasum":"6a07efcdf8b44c8f1ce38ec0a98807dc4ada34a6","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/p-map-series/-/p-map-series-3.0.0.tgz","fileCount":5,"unpackedSize":5310,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgb/RUCRA9TVsSAnZWagAA1tMP/2c37PQekWh43hhjNAAG\n4MgobbKZMfEYIPpW4YQeeRD8asjRiWTO5Tf/hoqpnu2ilPvSEfWlxv3HcIx+\n4/6Gxk6jy0l2ADZBTtv7zksCH3ptAUzXQpVxIb7Jp5bzGXcU+GLfQ6+gn0Rj\nRjaMyVRce+v7w5FKQp1DwLtyubMnecP5CLJznKtojVTc3hLgd++zSTq31FA2\n/H3Sa3oOIjctm7fNDsx63+XN2uL8WK2sK9rP3EA8KFSvmz3FfZSR2ZufDdjh\nDJXPw9R3pals8aKZZw/W7g4GOI1QMkcbxZrTY5lbf1WduJv+uhUmVApIeHys\nFNMK+ebSxZeL880giKN2ltBsHnUOgCkIHk7w/BPa01ZizH59tXSaRqb5hcpG\nnLhQwKRQpVSebD1+pSnkzXMSehROy58NmciwxSrcr2jvUObPLSWoEaKf5VGb\nNNF2Q03WKfXfbXUEkmB18CY07eDIF0dXWngp4NdskPvfH+CSjl010qkJ1HLJ\n+TpMQh3uRthy2u4qVgjW7QIua/BFEdFs0NHAempGGTW0u0MURTKxNvCHX139\nXzyg4BFU7GEt/30veIEcFB0YcPH/XHmbEmdClMBq95D+VWUbnrbi1uEgMC1P\nrH90Xk025MHuPXs4ZhItMeKcA4dDzfiQSX+w1b10Snj8yc7NvHvE6jJrimnM\n+WuA\r\n=polh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcTkLGBy21NuXaNk1WfWyyqxJ/0LV/De8Wdhw9o3tywwIgGDBJPjoag2fgcSocgpeuCilf1TQ4TWyznH3rpznJFuU="}]},"directories":{},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-map-series_3.0.0_1617949779969_0.05545155406002156"},"_hasShrinkwrap":false}},"name":"p-map-series","time":{"modified":"2022-06-23T05:48:48.586Z","created":"2016-10-21T04:35:52.144Z","1.0.0":"2016-10-21T04:35:52.144Z","2.0.0":"2019-03-15T08:02:57.597Z","2.1.0":"2019-04-03T05:19:37.928Z","3.0.0":"2021-04-09T06:29:40.139Z"},"readmeFilename":"readme.md","homepage":"https://github.com/sindresorhus/p-map-series#readme"}