{"_id":"p-iteration","_rev":"10-0f3fbb937e9e57e1a500b60a73dc75df","name":"p-iteration","description":"Make array iteration easy when using async/await and Promises","dist-tags":{"latest":"1.1.8"},"versions":{"1.0.0":{"name":"p-iteration","version":"1.0.0","description":"Make array iteration easy with async/await and promises","main":"index.js","scripts":{"test":"ava test/index.js","lint":"eslint lib test"},"keywords":["async/await","async","await","asynchronous","awaitable","async function","array","iteration","forEach","map","every","some","filter","reduce"],"author":{"name":"Antonio Valverde"},"license":"ISC","devDependencies":{"ava":"^0.19.1","babel-eslint":"^7.2.3","eslint":"^4.0.0"},"engines":{"node":">=8.0.0"},"repository":{"type":"git","url":"git+https://github.com/toniov/p-iteration.git"},"gitHead":"a3301742b1a5bc4f75333cec3676d25d91f9daca","bugs":{"url":"https://github.com/toniov/p-iteration/issues"},"homepage":"https://github.com/toniov/p-iteration#readme","_id":"p-iteration@1.0.0","_npmVersion":"5.0.3","_nodeVersion":"8.1.0","_npmUser":{"name":"antonvs","email":"avs.toka@gmail.com"},"dist":{"integrity":"sha512-cxAkXwDZIrgSN+DtSUnKXF9OYotThKzUMTpOleQZXBROLhXPZszrcF9i3S9lDvr9BnWArvpSQOEPWd5zcf+hjg==","shasum":"59f9c34e92781d22a095ccb4e26929b5bf116b57","tarball":"https://registry.npmjs.org/p-iteration/-/p-iteration-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH2PxsrueOOdNvIGqkUoNkpoH8/4eeSEaqylft/UCH39AiB06aF89oL9pSRU7x37a82EW0qmQKXc7HsRNpTqxrbYVQ=="}]},"maintainers":[{"name":"antonvs","email":"avs.toka@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-iteration-1.0.0.tgz_1497892526496_0.11982366302981973"},"directories":{}},"1.0.1":{"name":"p-iteration","version":"1.0.1","description":"Make array iteration easy with async/await and promises","main":"index.js","scripts":{"test":"ava test/index.js","lint":"eslint lib test"},"keywords":["async/await","async","await","asynchronous","awaitable","async function","array","iteration","forEach","map","every","some","filter","reduce"],"author":{"name":"Antonio Valverde"},"license":"ISC","devDependencies":{"ava":"^0.19.1","babel-eslint":"^7.2.3","eslint":"^4.0.0"},"engines":{"node":">=8.0.0"},"repository":{"type":"git","url":"git+https://github.com/toniov/p-iteration.git"},"gitHead":"8df0cc7e68e5dddec2b042702ab219c7a49ca729","bugs":{"url":"https://github.com/toniov/p-iteration/issues"},"homepage":"https://github.com/toniov/p-iteration#readme","_id":"p-iteration@1.0.1","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"antonvs","email":"avs.toka@gmail.com"},"dist":{"integrity":"sha512-o2bULrr7mGQg0cZkA3QqdqeXfE0fq3fkFX8dDhNLex3iqsVyNGKnHiXo+UUQFsdSzMXF7wpKIja2ejZc2Um/4Q==","shasum":"332dfc1b44d81a658ec25eed6ffe349a433b0959","tarball":"https://registry.npmjs.org/p-iteration/-/p-iteration-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE9Yw3VGZsLytL0NMpjRPlbeu0n6cPgmrmLCxUSdipyZAiEA0F+1G6fWS79IBKg0rte3FyjKlhSWzu8foxozOtenHeU="}]},"maintainers":[{"name":"antonvs","email":"avs.toka@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-iteration-1.0.1.tgz_1498479352057_0.08487544255331159"},"directories":{}},"1.1.0":{"name":"p-iteration","version":"1.1.0","description":"Make array iteration easy when using async/await and Promises","main":"index.js","scripts":{"test":"ava test/index.js","lint":"eslint lib test","generate-docs":"jsdoc -c .jsdoc.json -R README.md lib/static-methods.js"},"keywords":["async/await","async","await","asynchronous","awaitable","async function","array","iteration","forEach","map","every","some","filter","reduce"],"author":{"name":"Antonio Valverde"},"license":"ISC","devDependencies":{"ava":"^0.19.1","babel-eslint":"^7.2.3","eslint":"^4.0.0","jsdoc":"^3.4.3","jsdoc-strip-async-await":"^0.1.0","simple-jsdoc":"0.0.4"},"engines":{"node":">=8.0.0"},"repository":{"type":"git","url":"git+https://github.com/toniov/p-iteration.git"},"gitHead":"76cd31c457cf756e26237389c61034699c2b4454","bugs":{"url":"https://github.com/toniov/p-iteration/issues"},"homepage":"https://github.com/toniov/p-iteration#readme","_id":"p-iteration@1.1.0","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"antonvs","email":"avs.toka@gmail.com"},"dist":{"integrity":"sha512-ug3UiIFIgctlrIWX4/d6mRGWqapUxf/E1y0XfEe+mb+mxf6FcmoNxRm65dGIMLPPrYNKRX/+Lv3cKPRWY/sx4g==","shasum":"a843f6b2a1b3eae1f8090849c81b87d4135f32bf","tarball":"https://registry.npmjs.org/p-iteration/-/p-iteration-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC29xh2KSIvscx0Ab7UjOibY6Wb5Fitb0ewlLoiW501SgIhAIcgV05faZ0fZbvxVdULHeT8T1Q2iilhyM4n1MRL1mzM"}]},"maintainers":[{"name":"antonvs","email":"avs.toka@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-iteration-1.1.0.tgz_1498553136445_0.6520563559606671"},"directories":{}},"1.1.1":{"name":"p-iteration","version":"1.1.1","description":"Make array iteration easy when using async/await and Promises","main":"index.js","scripts":{"test":"ava test/index.js","lint":"eslint lib test","generate-docs":"jsdoc -c .jsdoc.json -R README.md lib/static-methods.js"},"keywords":["async/await","async","await","asynchronous","awaitable","async function","array","iteration","forEach","map","every","some","filter","reduce"],"author":{"name":"Antonio Valverde"},"license":"ISC","devDependencies":{"ava":"^0.19.1","babel-eslint":"^7.2.3","eslint":"^4.0.0","jsdoc":"^3.4.3","jsdoc-strip-async-await":"^0.1.0","simple-jsdoc":"0.0.4"},"engines":{"node":">=8.0.0"},"repository":{"type":"git","url":"git+https://github.com/toniov/p-iteration.git"},"gitHead":"22f1ad75c7d41570c976740cb476f69f16a94626","bugs":{"url":"https://github.com/toniov/p-iteration/issues"},"homepage":"https://github.com/toniov/p-iteration#readme","_id":"p-iteration@1.1.1","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"antonvs","email":"avs.toka@gmail.com"},"dist":{"integrity":"sha512-xuQo95601VZ3ajfr9HWCUYClKulvqiJNdfzCq9BRXRr7r5ZoQpoOruWhxb/W24VmwyyxaRLCKyFR9045d2V/Eg==","shasum":"9ff5b50858c821f264824b25085536c5d803c6f7","tarball":"https://registry.npmjs.org/p-iteration/-/p-iteration-1.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGFqCnLYqhBusWorQ0Dl68C1sfwW2O3mMxlgVb0+efaRAiB+lANr27o/Ub7mXQ20EW+ECsAw5tzJ4d8nOU4Cmek9aA=="}]},"maintainers":[{"name":"antonvs","email":"avs.toka@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-iteration-1.1.1.tgz_1498553717226_0.11031118431128561"},"directories":{}},"1.1.2":{"name":"p-iteration","version":"1.1.2","description":"Make array iteration easy when using async/await and Promises","main":"index.js","scripts":{"test":"ava test/index.js","lint":"eslint lib test","generate-docs":"jsdoc -c .jsdoc.json -R README.md lib/static-methods.js"},"keywords":["async/await","async","await","asynchronous","awaitable","async function","array","iteration","forEach","map","every","some","filter","reduce"],"author":{"name":"Antonio Valverde"},"license":"ISC","devDependencies":{"ava":"^0.19.1","babel-eslint":"^7.2.3","eslint":"^4.0.0","jsdoc":"^3.4.3","jsdoc-strip-async-await":"^0.1.0","simple-jsdoc":"0.0.4"},"engines":{"node":">=8.0.0"},"repository":{"type":"git","url":"git+https://github.com/toniov/p-iteration.git"},"gitHead":"3dc837ba99c6dd9648f61cd20a60b22d5ac02153","bugs":{"url":"https://github.com/toniov/p-iteration/issues"},"homepage":"https://github.com/toniov/p-iteration#readme","_id":"p-iteration@1.1.2","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"antonvs","email":"avs.toka@gmail.com"},"dist":{"integrity":"sha512-6rQ0VSfyUc9lCL18JFkzy9exQJh2XBYe323x+JVZ9KgAqwVelsY6FPUIJu0dwPrpiIxif4ZRSkzulG1d4cEOGA==","shasum":"7d94df7d8a70951357ca5b4429c2f8e3702fce13","tarball":"https://registry.npmjs.org/p-iteration/-/p-iteration-1.1.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDwyxrW23tiHKG+DH5S1gRuGAZFAM0iS6GvTGvSRVgAwIgXZzugMByn2kNZ1j5mq5LHrlubCH5zHHF2OI6yuMsVDQ="}]},"maintainers":[{"name":"antonvs","email":"avs.toka@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-iteration-1.1.2.tgz_1500212616396_0.04938152921386063"},"directories":{}},"1.1.3":{"name":"p-iteration","version":"1.1.3","description":"Make array iteration easy when using async/await and Promises","main":"index.js","scripts":{"test":"ava test/index.js","lint":"eslint lib test","generate-docs":"jsdoc -c .jsdoc.json -R README.md lib/static-methods.js"},"keywords":["async/await","async","await","asynchronous","awaitable","async function","array","iteration","forEach","map","every","some","filter","reduce"],"author":{"name":"Antonio Valverde"},"license":"ISC","devDependencies":{"ava":"^0.19.1","babel-eslint":"^7.2.3","eslint":"^4.0.0","jsdoc":"^3.4.3","jsdoc-strip-async-await":"^0.1.0","simple-jsdoc":"0.0.4"},"engines":{"node":">=8.0.0"},"repository":{"type":"git","url":"git+https://github.com/toniov/p-iteration.git"},"gitHead":"581c68f07c8985e375598bb27d72295449cbd004","bugs":{"url":"https://github.com/toniov/p-iteration/issues"},"homepage":"https://github.com/toniov/p-iteration#readme","_id":"p-iteration@1.1.3","_npmVersion":"5.3.0","_nodeVersion":"8.1.2","_npmUser":{"name":"antonvs","email":"avs.toka@gmail.com"},"dist":{"integrity":"sha512-saf+gq6xJwl+OI7FnQvpClw/afBHPIe3FMBYRA1imvotx8XCN4Me68lnyerjw+0bXnT46/Yg5fAtZ2nRsAv8SA==","shasum":"694be4404377e17a383c9d7f8b976fccb54b3a1f","tarball":"https://registry.npmjs.org/p-iteration/-/p-iteration-1.1.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBmMfoMViJfglw0VvqX8ahsWeddgo5f4rDKbiMNW6sb+AiBW7jVU7XR3ZiBZCbUPLUeTmO9tfSRLXsvIfl89jttY2g=="}]},"maintainers":[{"name":"antonvs","email":"avs.toka@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-iteration-1.1.3.tgz_1500341857386_0.5518236281350255"},"directories":{}},"1.1.4":{"name":"p-iteration","version":"1.1.4","description":"Make array iteration easy when using async/await and Promises","main":"index.js","scripts":{"test":"ava test/index.js","lint":"eslint lib test","generate-docs":"jsdoc -c .jsdoc.json -R README.md lib/static-methods.js"},"keywords":["async/await","async","await","asynchronous","awaitable","async function","array","iteration","forEach","map","every","some","filter","reduce"],"author":{"name":"Antonio Valverde"},"license":"ISC","devDependencies":{"ava":"^0.19.1","babel-eslint":"^7.2.3","eslint":"^4.0.0","jsdoc":"^3.4.3","jsdoc-strip-async-await":"^0.1.0","simple-jsdoc":"0.0.4"},"engines":{"node":">=8.0.0"},"repository":{"type":"git","url":"git+https://github.com/toniov/p-iteration.git"},"gitHead":"18ebe7e6e906884fc5519638e6730e88a06a35b4","bugs":{"url":"https://github.com/toniov/p-iteration/issues"},"homepage":"https://github.com/toniov/p-iteration#readme","_id":"p-iteration@1.1.4","_npmVersion":"5.0.3","_nodeVersion":"8.1.3","_npmUser":{"name":"antonvs","email":"avs.toka@gmail.com"},"dist":{"integrity":"sha512-/zOhdQRsxOdwR1dZk0TNCpj2VU95S60SfZ+FYE2YjGAONp7Q/2f0StAJ9G/j4CIgjqHLUgjfNihjKh1lRUJ/tQ==","shasum":"76f3a94fed7275e6bf0fb041da859d8fb5184fea","tarball":"https://registry.npmjs.org/p-iteration/-/p-iteration-1.1.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBZfLb/zAky+xMFJpG2TCNXm5dYgSGVOznDJhjXBW/8RAiBIqOpzmcf5/uyFfqejObqKMRyVlxqkRzG91gDebpP8Qg=="}]},"maintainers":[{"name":"antonvs","email":"avs.toka@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-iteration-1.1.4.tgz_1500389135013_0.719369487836957"},"directories":{}},"1.1.5":{"name":"p-iteration","version":"1.1.5","description":"Make array iteration easy when using async/await and Promises","main":"index.js","scripts":{"test":"ava test/index.js","lint":"eslint lib test","generate-docs":"jsdoc -c .jsdoc.json -R README.md lib/static-methods.js"},"keywords":["async/await","async","await","asynchronous","awaitable","async function","array","iteration","forEach","map","every","some","filter","reduce"],"author":{"name":"Antonio Valverde"},"license":"ISC","devDependencies":{"ava":"^0.19.1","babel-eslint":"^7.2.3","eslint":"^4.0.0","jsdoc":"^3.4.3","jsdoc-strip-async-await":"^0.1.0","simple-jsdoc":"0.0.4"},"engines":{"node":">=8.0.0"},"repository":{"type":"git","url":"git+https://github.com/toniov/p-iteration.git"},"gitHead":"d7bee4246b48ef00a2a7e187c1d1c58aea07ed67","bugs":{"url":"https://github.com/toniov/p-iteration/issues"},"homepage":"https://github.com/toniov/p-iteration#readme","_id":"p-iteration@1.1.5","_npmVersion":"5.3.0","_nodeVersion":"8.1.2","_npmUser":{"name":"antonvs","email":"avs.toka@gmail.com"},"dist":{"integrity":"sha512-CvyfEfEWShCRhgGRhe0Y4WX2anIi81ww0I9Yc36jkjVX1tbwTChN+jwGzxiX4dTd6xLRkSwN9u2fqXLu4/JHSA==","shasum":"c8dd8e61d5bc1a151c7c7ccc2e288c0fb826eb8b","tarball":"https://registry.npmjs.org/p-iteration/-/p-iteration-1.1.5.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIQplGCJPcCQZ5CTDGuOXvwc0q6EwUMj7wrC/us/wUqgIhAJMO7Kwo23gfijfD3AOgXsY7BnacfoagC1RUtQTkZjuD"}]},"maintainers":[{"name":"antonvs","email":"avs.toka@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-iteration-1.1.5.tgz_1501123828896_0.14763470622710884"},"directories":{}},"1.1.7":{"name":"p-iteration","version":"1.1.7","description":"Make array iteration easy when using async/await and Promises","main":"index.js","types":"index.d.ts","scripts":{"test":"ava test/index.js","lint":"eslint lib test","generate-docs":"jsdoc -c .jsdoc.json -R README.md lib/static-methods.js"},"keywords":["async/await","async","await","asynchronous","awaitable","async function","array","iteration","forEach","map","every","some","filter","reduce"],"author":{"name":"Antonio Valverde"},"license":"ISC","devDependencies":{"ava":"^0.19.1","babel-eslint":"^7.2.3","eslint":"^4.0.0","jsdoc":"^3.4.3","jsdoc-strip-async-await":"^0.1.0","simple-jsdoc":"0.0.4"},"engines":{"node":">=8.0.0"},"browserify":{"transform":[["babelify",{"presets":["es2015","es2016","es2017"]}]]},"repository":{"type":"git","url":"git+https://github.com/toniov/p-iteration.git"},"gitHead":"2a37e96ab22a21856c2ddea9cd3f1b5c3dcd4138","bugs":{"url":"https://github.com/toniov/p-iteration/issues"},"homepage":"https://github.com/toniov/p-iteration#readme","_id":"p-iteration@1.1.7","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"antonvs","email":"avs.toka@gmail.com"},"dist":{"integrity":"sha512-VsYvUPjm2edbKkX4QzlASC1qB2e4Z6IE9WPaRVHKwCtobmB6vfUcU9eBOwj1k5uMNi8O6w89QfsDatO5ePSjQg==","shasum":"9e71d79ede244b9f52592521f4487a56b6fb50fa","tarball":"https://registry.npmjs.org/p-iteration/-/p-iteration-1.1.7.tgz","fileCount":10,"unpackedSize":36660,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbADwoCRA9TVsSAnZWagAASTYQAJwrVR0U9l5BGTmr8Rzj\nJkEa3m2TS1BPoO/vGrWEAMrcBppiZrxujxBOqohQCktal0MY0ucEOOPZpQz4\n/XvT4NiwPNsKJogoDoJPMiV2Ib0VG8SLYaJqkPgWrwFvQk082RxvXIyId6lb\nxvY9ZBnq8Hz/5SqBwLopWU/OQOT+d3G7k8USLh3pNGVrY1whjHMVsvKbYfBe\nTx7mmOrjpXXvqX7G2hJlXv46lPvHfOnMP/Sso22V/sLc1vLsmDhyaTqzP6lH\niD//zi+LmrvRiRYLiaS9pXllbasoZdfC+gbKjf03wM++B5eTbzDkP+41ktL0\nmAWOR2aj4Pxn8f4UjvT0/3A/qaIWU+RTKpwD8t8eBiyKDANm4Wjn7PRbajfz\n6ZLp7KRgCq1/O3dZGXGt87YPXpkgOjFibLHzl7k5KrHSoR7U/vx4Msdtw8HZ\noFEQqCLCU3u6WdhXP/HJ88C4uCZWJldLXg5J6JWcSRjvTq86HkE3Jca4h3Kc\neNbpvVBIvmDbv+11kDE49RgpGQiD2LrVpmmObpYcVuZrPPqzPog6RwrRgXdM\nbSw2aTRg+7CDABtSVKyDxOnQCi8QJDNgy9k1I/8fSvKIwwoAT7Ru+wxWZ0Kf\nUiZlnwya4yWWXxVnCP4j3iBM4DRdcJlhZfoFHRoAZme86QgKpC9E24wN/s8G\nbLb1\r\n=WuFs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQDhRJcSdssZ+9lzGl5XwR3aTc2kJSz1pPGIyX8Oi9V4KwIfWPQ9DTKem+ZXTRTQ+0GOMAxa1+c76jW9AQ1RKLGdRA=="}]},"maintainers":[{"name":"antonvs","email":"avs.toka@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-iteration_1.1.7_1526742054647_0.9343846209306494"},"_hasShrinkwrap":false},"1.1.8":{"name":"p-iteration","version":"1.1.8","description":"Make array iteration easy when using async/await and Promises","main":"index.js","types":"index.d.ts","scripts":{"test":"ava test/index.js","lint":"eslint lib test","generate-docs":"jsdoc -c .jsdoc.json -R README.md lib/static-methods.js"},"keywords":["async/await","async","await","asynchronous","awaitable","async function","array","iteration","forEach","map","every","some","filter","reduce"],"author":{"name":"Antonio Valverde"},"license":"MIT","devDependencies":{"ava":"1.3.1","babel-eslint":"7.2.3","eslint":"4.0.0","jsdoc":"3.4.3","jsdoc-strip-async-await":"0.1.0","simple-jsdoc":"0.0.4"},"engines":{"node":">=8.0.0"},"browserify":{"transform":[["babelify",{"presets":["es2015","es2016","es2017"]}]]},"repository":{"type":"git","url":"git+https://github.com/toniov/p-iteration.git"},"gitHead":"97436e0a14865530a3a54530a289801de107ae21","bugs":{"url":"https://github.com/toniov/p-iteration/issues"},"homepage":"https://github.com/toniov/p-iteration#readme","_id":"p-iteration@1.1.8","_nodeVersion":"11.11.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-IMFBSDIYcPNnW7uWYGrBqmvTiq7W0uB0fJn6shQZs7dlF3OvrHOre+JT9ikSZ7gZS3vWqclVgoQSvToJrns7uQ==","shasum":"14df726d55af368beba81bcc92a26bb1b48e714a","tarball":"https://registry.npmjs.org/p-iteration/-/p-iteration-1.1.8.tgz","fileCount":9,"unpackedSize":36623,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJci1bBCRA9TVsSAnZWagAAqowP/RoVWpmvoCPKdluCad6d\n2yc7rL8JzV4SCg05FuDl3gQJB6RD0RMmS1Fkr1wzxLnVx8KzCVeR0EJRLTB0\nwK7RdAtCtixFupkaBKEVqrTFdbJ4eOe/60uVu3sNAZjOIsgF3etrHt37B0QI\nLfbXXodmnsf86v2jJe2qXjs8Ylu52xZ0AqrBVsN3zhEGhn9Lzca/q+I4bdVZ\nGlsdHbVx4gOwIOKgys2riIYhyLw/5syNAE2BT+qC5hMeqtKwyw0oRzcxqdOX\n4a73OXYpNtwYrLtnOzwxfbuhLkAuBQEHfnteOpeBphtFvbL7bZe2Ij0JwiwI\nBEY9UagPWpuLSVEjHsYWfNIPauvhDgMh0oAs9/p1HtQlOVhrtlcGbwos4lFe\n4NAf6HSYrF+jOwuWoGuGvq+HvCt9e2Wje5e6J+LK6JmI8zHIKmWcTrLzyj7x\n8jwAqws4gArT7zCcF7rguhma+QKY4ebJ++i8MOP8/Y9U/0nDeRqvQFtAN0U7\nVsA9ENfJeQVa+WF0rrm+IOt36UvfH7lC/MfsXrzMvqvj/8s39Gr45R9RPYS5\nAGDxyrA00O76o/GsMcyUcBkL0MzRXnOfUN8zJwyq4ZccFSkROx/gPFRwZ4M9\nl/y5Wst5QfezTOlpajErDqPVEOiAjWRxuFvPSjFrMWvv1nOODPXPXvKt1nPK\nBx1g\r\n=ZOyr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmol9J/n7Now34tZ++59xu3lVqCfAGZfgiKQ8eKzhWbAIgHaJ2FBPp9EQCZrY6PbFpNS21FNYBGZR6XS6J86Wstqk="}]},"maintainers":[{"name":"antonvs","email":"avs.toka@gmail.com"}],"_npmUser":{"name":"antonvs","email":"avs.toka@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-iteration_1.1.8_1552635584693_0.4790657364625299"},"_hasShrinkwrap":false}},"readme":"# p-iteration [![Build Status](https://travis-ci.org/toniov/p-iteration.svg?branch=master)](https://travis-ci.org/toniov/p-iteration) [![NPM version](https://badge.fury.io/js/p-iteration.svg)](http://badge.fury.io/js/p-iteration)\n\n\n> Make array iteration easy when using async/await and promises\n\n- Same functionality as the ES5 Array iteration methods we all know\n- All the methods return a `Promise`, making them awaitable and thenable\n- Allow the usage of async functions as callback\n- Callbacks run concurrently\n- Lightweight (no prd dependencies)\n\n\n## Install\n\n```\n$ npm install --save p-iteration\n```\n\n\n## Usage\n\nSmooth asynchronous iteration using `async/await`:\n\n```js\nconst { map } = require('p-iteration');\n\n// map passing an async function as callback\nfunction getUsers (userIds) {\n  return map(userIds, async userId => {\n    const response = await fetch(`/api/users/${userId}`);\n    return response.json();\n  });\n}\n\n// map passing a non-async function as callback\nasync function getRawResponses (userIds) {\n  const responses = await map(userIds, userId => fetch(`/api/users/${userId}`));\n  // ... do some stuff\n  return responses;\n}\n\n// ...\n```\n\n```js\nconst { filter } = require('p-iteration');\n\nasync function getFilteredUsers (userIds, name) {\n  const filteredUsers = await filter(userIds, async userId => {\n    const response = await fetch(`/api/users/${userId}`);\n    const user = await response.json();\n    return user.name === name;\n  });\n  // ... do some stuff\n  return filteredUsers;\n}\n\n// ...\n```\n\nAll methods return a Promise so they can just be used outside an async function just with plain Promises:\n\n```js\nconst { map } = require('p-iteration');\n\nmap([123, 125, 156], (userId) => fetch(`/api/users/${userId}`))\n  .then((result) => {\n    // ...\n  })\n  .catch((error) => {\n    // ...\n  });\n```\n\nIf there is a Promise in the array, it will be unwrapped before calling the callback:\n\n```js\nconst { forEach } = require('p-iteration');\nconst fetchJSON = require('nonexistent-module');\n\nfunction logUsers () {\n  const users = [\n    fetchJSON('/api/users/125'), // returns a Promise\n    { userId: 123, name: 'Jolyne', age: 19 },\n    { userId: 156, name: 'Caesar', age: 20 }\n  ];\n  return forEach(users, (user) => {\n    console.log(user);\n  });\n}\n```\n\n```js\nconst { find } = require('p-iteration');\nconst fetchJSON = require('nonexistent-module');\n\nfunction findUser (name) {\n  const users = [\n    fetchJSON('/api/users/125'), // returns a Promise\n    { userId: 123, name: 'Jolyne', age: 19 },\n    { userId: 156, name: 'Caesar', age: 20 }\n  ];\n  return find(users, (user) => user.name === name);\n}\n```\n\nThe callback will be invoked as soon as the Promise is unwrapped:\n\n```js\nconst { forEach } = require('p-iteration');\n\n// function that returns a Promise resolved after 'ms' passed\nconst delay = (ms) => new Promise(resolve => setTimeout(() => resolve(ms), ms));\n\n// 100, 200, 300 and 500 will be logged in this order\nasync function logNumbers () {\n  const numbers = [\n    delay(500),\n    delay(200),\n    delay(300),\n    100\n  ];\n  await forEach(numbers, (number) => {\n    console.log(number);\n  });\n}\n```\n\n## API\n\nThe methods are implementations of the ES5 Array iteration methods we all know with the same syntax, but all return a `Promise`. Also, with the exception of `reduce()`, all methods callbacks are run concurrently. There is a series version of each method, called: `${methodName}Series`, series methods use the same API that their respective concurrent ones.\n\nThere is a link to the [original reference](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) of each method in the docs of this module:\n\n- [`forEach`(array, callback, [thisArg])](https://toniov.github.io/p-iteration/global.html#forEach)\n\n- [`forEachSeries`(array, callback, [thisArg])](https://toniov.github.io/p-iteration/global.html#forEachSeries)\n\n- [`map`(array, callback, [thisArg])](https://toniov.github.io/p-iteration/global.html#map)\n\n- [`mapSeries`(array, callback, [thisArg])](https://toniov.github.io/p-iteration/global.html#mapSeries)\n\n- [`find`(array, callback, [thisArg])](https://toniov.github.io/p-iteration/global.html#find)\n\n- [`findSeries`(array, callback, [thisArg])](https://toniov.github.io/p-iteration/global.html#findSeries)\n\n- [`findIndex`(array, callback, [thisArg])](https://toniov.github.io/p-iteration/global.html#findIndex)\n\n- [`findIndexSeries`(array, callback, [thisArg])](https://toniov.github.io/p-iteration/global.html#findIndexSeries)\n\n- [`some`(array, callback, [thisArg])](https://toniov.github.io/p-iteration/global.html#some)\n\n- [`someSeries`(array, callback, [thisArg])](https://toniov.github.io/p-iteration/global.html#someSeries)\n\n- [`every`(array, callback, [thisArg])](https://toniov.github.io/p-iteration/global.html#every)\n\n- [`everySeries`(array, callback, [thisArg])](https://toniov.github.io/p-iteration/global.html#everySeries)\n\n- [`filter`(array, callback, [thisArg])](https://toniov.github.io/p-iteration/global.html#filter)\n\n- [`filterSeries`(array, callback, [thisArg])](https://toniov.github.io/p-iteration/global.html#filterSeries)\n\n- [`reduce`(array, callback, [initialValue])](https://toniov.github.io/p-iteration/global.html#reduce)\n\n\n## Instance methods\n\nExtending native objects is discouraged and I don't recommend it, but in case you know what you are doing, you can extend `Array.prototype` to use the above methods as instance methods. They have been renamed as `async${MethodName}`, so the original ones are not overwritten.\n\n```js\nconst { instanceMethods } = require('p-iteration');\n\nObject.assign(Array.prototype, instanceMethods);\n\nasync function example () {\n  const foo = await [1, 2, 3].asyncMap((id) => fetch(`/api/example/${id}`));\n}\n```\n\n\n## License\n\nMIT © [Antonio V](https://github.com/toniov)","maintainers":[{"name":"antonvs","email":"avs.toka@gmail.com"}],"time":{"modified":"2022-05-12T10:30:06.223Z","created":"2017-06-19T17:15:26.626Z","1.0.0":"2017-06-19T17:15:26.626Z","1.0.1":"2017-06-26T12:15:52.266Z","1.1.0":"2017-06-27T08:45:36.537Z","1.1.1":"2017-06-27T08:55:17.398Z","1.1.2":"2017-07-16T13:43:36.536Z","1.1.3":"2017-07-18T01:37:37.567Z","1.1.4":"2017-07-18T14:45:35.145Z","1.1.5":"2017-07-27T02:50:28.996Z","1.1.7":"2018-05-19T15:00:54.747Z","1.1.8":"2019-03-15T07:39:45.157Z"},"homepage":"https://github.com/toniov/p-iteration#readme","keywords":["async/await","async","await","asynchronous","awaitable","async function","array","iteration","forEach","map","every","some","filter","reduce"],"repository":{"type":"git","url":"git+https://github.com/toniov/p-iteration.git"},"author":{"name":"Antonio Valverde"},"bugs":{"url":"https://github.com/toniov/p-iteration/issues"},"license":"MIT","readmeFilename":"README.md"}