{"_id":"batch-promises","_rev":"5-df34de49e91cffe6ae8924cc1696efc8","name":"batch-promises","description":"easily batch promises","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"batch-promises","version":"0.0.1","description":"easily batch promises","main":"index.js","scripts":{"test":"test"},"repository":{"type":"git","url":"git+https://github.com/Nicktho/batch-promises.git"},"keywords":["batch","promises"],"author":{"name":"Nick Matenaar","email":"matenaar92@gmail.com","url":"http://nickmatenaar.com/"},"license":"MIT","bugs":{"url":"https://github.com/Nicktho/batch-promises/issues"},"homepage":"https://github.com/Nicktho/batch-promises#readme","devDependencies":{"mocha":"^2.3.4"},"gitHead":"654a738c6197cf40db2d0fe6651b1aa0d73ae33d","_id":"batch-promises@0.0.1","_shasum":"7a6e044bd57f4bb46c2d98b82cbf61b5be365d2e","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"nicktho","email":"matenaar92@gmail.com"},"maintainers":[{"name":"nicktho","email":"matenaar92@gmail.com"}],"dist":{"shasum":"7a6e044bd57f4bb46c2d98b82cbf61b5be365d2e","tarball":"https://registry.npmjs.org/batch-promises/-/batch-promises-0.0.1.tgz","integrity":"sha512-GRLpEutwt+KSB2GLkXXpXzbIhrEtuYHqyImM9AuLaavjDZ1O44p2+b5un/1ffxep4RAAI8lTKis8WAZJ2o77bQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQLxDKmfq7H+FSJBgyiS17nmZH7RDH51mGYbkqdlHWUQIgWh2fivzHsfgAkDvT7O+Lgyvk52LNEQs+f+seQHafO68="}]}},"0.0.2":{"name":"batch-promises","version":"0.0.2","description":"easily batch promises","main":"index.js","scripts":{"test":"test"},"repository":{"type":"git","url":"git+https://github.com/Nicktho/batch-promises.git"},"keywords":["batch","promises"],"author":{"name":"Nick Matenaar","email":"matenaar92@gmail.com","url":"http://nickmatenaar.com/"},"license":"MIT","bugs":{"url":"https://github.com/Nicktho/batch-promises/issues"},"homepage":"https://github.com/Nicktho/batch-promises#readme","devDependencies":{"mocha":"^2.3.4"},"gitHead":"c7926cb29b8c0045a855cab7c815ec9c19e33a08","_id":"batch-promises@0.0.2","_shasum":"9ac7dfc3894e4ded1f7ad609cc6966eb6a6ccc13","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"nicktho","email":"matenaar92@gmail.com"},"maintainers":[{"name":"nicktho","email":"matenaar92@gmail.com"}],"dist":{"shasum":"9ac7dfc3894e4ded1f7ad609cc6966eb6a6ccc13","tarball":"https://registry.npmjs.org/batch-promises/-/batch-promises-0.0.2.tgz","integrity":"sha512-OBRWKd132GzFfCwRfNBxT/9wWkfh2IldHtRFUtoT0kdbxinbh3E+O8UwbEJDfwp/w4mxN+e47OLE+WJrKm3WMA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICa6bSe4nuxgPH5nTJ8kxPQfJhom0vK2Mt7OYjYkIgPaAiEArgK9wARByYPRR49o/ibgvyMtBvpnVG+iZubgnrr76xA="}]}},"0.0.3":{"name":"batch-promises","version":"0.0.3","description":"easily batch promises","main":"index.js","scripts":{"test":"_mocha test"},"repository":{"type":"git","url":"git+https://github.com/Nicktho/batch-promises.git"},"keywords":["batch","promises"],"author":{"name":"Nick Matenaar","email":"matenaar92@gmail.com","url":"http://nickmatenaar.com/"},"license":"MIT","bugs":{"url":"https://github.com/Nicktho/batch-promises/issues"},"homepage":"https://github.com/Nicktho/batch-promises#readme","devDependencies":{"mocha":"^2.3.4"},"gitHead":"14c0477e3f914393c1f617c7223b7aa7e1348257","_id":"batch-promises@0.0.3","_shasum":"04b850fe6847c7aff05f3cca41045932430b1c32","_from":".","_npmVersion":"3.5.2","_nodeVersion":"4.2.1","_npmUser":{"name":"nicktho","email":"matenaar92@gmail.com"},"maintainers":[{"name":"nicktho","email":"matenaar92@gmail.com"}],"dist":{"shasum":"04b850fe6847c7aff05f3cca41045932430b1c32","tarball":"https://registry.npmjs.org/batch-promises/-/batch-promises-0.0.3.tgz","integrity":"sha512-Xlr3HckJFoXNcLmoxHGi6okPMWGilmrFBCrgeSWjXLagVs1W3/b2huWJTm5do/um0jugbcqTGMoGS8DL4pPUpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPO0xNiJ/9PwFU26cOHuq/Tpp3GXWv6Ljz6RohYhgkrAIhAKkeyorEu8pfVZ1irdoVNOGiqRhgyW+xcYfyt+D77obg"}]}}},"readme":"# batch-promises\n\nEasily batch promises\n\n**NOTE**: Requires runtime to support Promise or to be polyfilled.\n\n## Api\n\n```js\nbatchPromises(int: batchSize, array: Collection, i => Promise: Iteratee)\n```\n\nThe `Promise: Iteratee` will be called after each batch.\n\n## Use:\n\n```js\nimport batchPromises from 'batch-promises';\n\nbatchPromises(2, [1,2,3,4,5], i => new Promise((resolve, reject) => {\n\n  // The iteratee will fire after each batch resulting in the following behaviour:\n  // @ 100ms resolve items 1 and 2 (first batch of 2)\n  // @ 200ms resolve items 3 and 4 (second batch of 2)\n  // @ 300ms resolve remaining item 5 (last remaining batch)\n  setTimeout(() => {\n    resolve(i);\n  }, 100);\n}))\n.then(results => {\n  console.log(results); // [1,2,3,4,5]\n});\n```\n","maintainers":[{"name":"nicktho","email":"matenaar92@gmail.com"}],"time":{"modified":"2022-06-13T04:23:42.941Z","created":"2015-12-03T00:26:46.441Z","0.0.1":"2015-12-03T00:26:46.441Z","0.0.2":"2015-12-03T00:29:35.437Z","0.0.3":"2015-12-30T02:10:38.205Z"},"homepage":"https://github.com/Nicktho/batch-promises#readme","keywords":["batch","promises"],"repository":{"type":"git","url":"git+https://github.com/Nicktho/batch-promises.git"},"author":{"name":"Nick Matenaar","email":"matenaar92@gmail.com","url":"http://nickmatenaar.com/"},"bugs":{"url":"https://github.com/Nicktho/batch-promises/issues"},"license":"MIT","readmeFilename":"README.md"}