{"_id":"tiny-each-async","_rev":"8-857317d750075fcdc013bc3113d47499","name":"tiny-each-async","description":"Asynchronous iterator function for parallel processing.","dist-tags":{"latest":"2.0.3"},"versions":{"1.0.0":{"name":"tiny-each-async","version":"1.0.0","description":"Asynchronous iterator function for parallel processing.","main":"index.js","keywords":["each","async","asynchronous","iteration","iterate","loop","foreach","parallel","concurrent","array","flow","control flow"],"dependencies":{},"devDependencies":{"alessioalex-standard":"^1.0.0","husky":"^0.10.1","tape":"^4.2.2"},"scripts":{"test":"tape test.js","lint":"alessioalex-standard","precommit":"npm run lint && npm test"},"author":{"name":"Alexandru Vladutu","email":"alexandru.vladutu@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/alessioalex/tiny-each-async.git"},"gitHead":"0a88298146ed96ceb681bf31a29feb9ec89c771c","bugs":{"url":"https://github.com/alessioalex/tiny-each-async/issues"},"homepage":"https://github.com/alessioalex/tiny-each-async#readme","_id":"tiny-each-async@1.0.0","_shasum":"80ef7ed4a2667bde5d4ef3c99c02c084c08ba958","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"},"dist":{"shasum":"80ef7ed4a2667bde5d4ef3c99c02c084c08ba958","tarball":"https://registry.npmjs.org/tiny-each-async/-/tiny-each-async-1.0.0.tgz","integrity":"sha512-iMcQKbwCLV8OXp+L4v4LISaUd4+JhtvI5ESVM2wrZSGhLbyUPZaFyeczhPKNIr35bkfTGO/p22fc+lflh/oiBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCP+C9Gv9Vt4s2RPHqWTNbCqWClYhpJwDNKU6gZMH7EFQIgMkMvdj/fsG4RC9yFTTcUCUKNF3eNE07RYMHFKM5Hwt0="}]},"maintainers":[{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"}]},"1.1.0":{"name":"tiny-each-async","version":"1.1.0","description":"Asynchronous iterator function for parallel processing.","main":"index.js","keywords":["each","async","asynchronous","iteration","iterate","loop","foreach","parallel","concurrent","array","flow","control flow"],"dependencies":{},"devDependencies":{"alessioalex-standard":"^1.0.0","husky":"^0.10.1","tape":"^4.2.2"},"scripts":{"test":"tape test.js","lint":"alessioalex-standard","precommit":"npm run lint && npm test"},"author":{"name":"Alexandru Vladutu","email":"alexandru.vladutu@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/alessioalex/tiny-each-async.git"},"gitHead":"4de7ad805663c56bf38bfa8ea6d7fcb6f8ed5ddc","bugs":{"url":"https://github.com/alessioalex/tiny-each-async/issues"},"homepage":"https://github.com/alessioalex/tiny-each-async#readme","_id":"tiny-each-async@1.1.0","_shasum":"5f34476552e834a5faa556e8cf93572e39c0520e","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"},"dist":{"shasum":"5f34476552e834a5faa556e8cf93572e39c0520e","tarball":"https://registry.npmjs.org/tiny-each-async/-/tiny-each-async-1.1.0.tgz","integrity":"sha512-mbj1Hcl4RIoq22LSUGvW4FoOX8DOHX4ZIqM56plg+xqWrCB1VOp+vStuS0pwS5V6tCNKmRkt+/V5VFtkIvyYBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHWn3HlwQj6fF2iqgA20Itnzpk5twUjj1rmlnRi6WIofAiEAkXOAfA7Qkz96K5O8h4l84h6pvRovM9m6lfz1FYnb6Zg="}]},"maintainers":[{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"}]},"2.0.0":{"name":"tiny-each-async","version":"2.0.0","description":"Asynchronous iterator function for parallel processing.","main":"index.js","keywords":["each","async","asynchronous","iteration","iterate","loop","foreach","parallel","concurrent","array","flow","control flow"],"dependencies":{},"devDependencies":{"alessioalex-standard":"^1.0.0","async":"^1.5.0","husky":"^0.10.1","lolex":"^1.3.2","matcha":"^0.6.0","tape":"^4.2.2"},"scripts":{"bench":"matcha bench/*.js","test":"tape test.js","lint":"alessioalex-standard","precommit":"npm run lint && npm test"},"author":{"name":"Alexandru Vladutu","email":"alexandru.vladutu@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/alessioalex/tiny-each-async.git"},"gitHead":"afedb960a87609008cc378d289d6617f99c13a65","bugs":{"url":"https://github.com/alessioalex/tiny-each-async/issues"},"homepage":"https://github.com/alessioalex/tiny-each-async#readme","_id":"tiny-each-async@2.0.0","_shasum":"03b27ca600344ea71091fa32afbfca813feb0c06","_from":".","_npmVersion":"2.14.9","_nodeVersion":"4.2.1","_npmUser":{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"},"dist":{"shasum":"03b27ca600344ea71091fa32afbfca813feb0c06","tarball":"https://registry.npmjs.org/tiny-each-async/-/tiny-each-async-2.0.0.tgz","integrity":"sha512-/tp8Nhinujb7vFbVhomLqn/aNkwRjRw2IIdXnuBEOXtnpBERYoJvhyqze/T3zk29Joe6uHlFxz4M9XGjXtYlwg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTIjw8oGcsdy70CcIsF6HaECPa6C4jZqBXkfYiYFhdZAIhAP1F9gXZVb12HRv2IZLhj3Hq1+PIOFTyh8U4craTAoA9"}]},"maintainers":[{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"}]},"2.0.1":{"name":"tiny-each-async","version":"2.0.1","description":"Asynchronous iterator function for parallel processing.","main":"index.js","keywords":["each","async","asynchronous","iteration","iterate","loop","foreach","parallel","concurrent","array","flow","control flow"],"dependencies":{},"devDependencies":{"alessioalex-standard":"^1.0.0","async":"^1.5.0","husky":"^0.10.1","lolex":"^1.3.2","matcha":"^0.6.0","tape":"^4.2.2"},"scripts":{"bench":"matcha bench/*.js","test":"tape test.js","lint":"alessioalex-standard","precommit":"npm run lint && npm test"},"author":{"name":"Alexandru Vladutu","email":"alexandru.vladutu@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/alessioalex/tiny-each-async.git"},"gitHead":"10054733bf311044fb68aec24fe2fac6b21bde36","bugs":{"url":"https://github.com/alessioalex/tiny-each-async/issues"},"homepage":"https://github.com/alessioalex/tiny-each-async#readme","_id":"tiny-each-async@2.0.1","_shasum":"ab2050c63960a15ff687d33c2d23cc3dea0fedc1","_from":".","_npmVersion":"2.14.9","_nodeVersion":"4.2.1","_npmUser":{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"},"dist":{"shasum":"ab2050c63960a15ff687d33c2d23cc3dea0fedc1","tarball":"https://registry.npmjs.org/tiny-each-async/-/tiny-each-async-2.0.1.tgz","integrity":"sha512-Pt4iXbPiB2oHoDgQcO3NZr44J+/pwTn5I1qpQdhaD8Iyi06vIKa4l+YW7gsvr1ImZQN0Xad7VGKVdn/JUkMWMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEmOcX3qeCUntiZY3XwNgwqvNEUTZmfj0Wn2x29F7b69AiBnmSXQTrqftgPaYyl1d0010yrdZDTuN1ow3UL3a5rU2A=="}]},"maintainers":[{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"}]},"2.0.2":{"name":"tiny-each-async","version":"2.0.2","description":"Asynchronous iterator function for parallel processing.","main":"index.js","keywords":["each","async","asynchronous","iteration","iterate","loop","foreach","parallel","concurrent","array","flow","control flow"],"dependencies":{},"devDependencies":{"alessioalex-standard":"^1.0.0","async":"^1.5.0","husky":"^0.10.1","lolex":"^1.3.2","matcha":"^0.6.0","tape":"^4.2.2"},"scripts":{"bench":"matcha bench/*.js","test":"tape test.js","lint":"alessioalex-standard","precommit":"npm run lint && npm test"},"author":{"name":"Alexandru Vladutu","email":"alexandru.vladutu@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/alessioalex/tiny-each-async.git"},"gitHead":"78e33aa97a70445e14d7dc8905fae10f6c7741ab","bugs":{"url":"https://github.com/alessioalex/tiny-each-async/issues"},"homepage":"https://github.com/alessioalex/tiny-each-async#readme","_id":"tiny-each-async@2.0.2","_shasum":"fd8160fd46853df1560d557b1ed702e2a864948f","_from":".","_npmVersion":"2.14.9","_nodeVersion":"4.2.1","_npmUser":{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"},"dist":{"shasum":"fd8160fd46853df1560d557b1ed702e2a864948f","tarball":"https://registry.npmjs.org/tiny-each-async/-/tiny-each-async-2.0.2.tgz","integrity":"sha512-i3vaTGjaKkf3w43RmuWAdjZMqx1m3HUWVGuBpgQ/Wa1vvkcdn7Y89OgduOql+5gvvBNKSEGNCRFTpAeeKiTEUA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHYu/xKP/5Wvx1CPPlyy+mD/zeDv0RplkJi6hYqnRkLbAiEAzmi4imeFTDGqJW6HXp2tDMRPtMrzAfUITJtMBv3MRts="}]},"maintainers":[{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"}]},"2.0.3":{"name":"tiny-each-async","version":"2.0.3","description":"Asynchronous iterator function for parallel processing.","main":"index.js","keywords":["each","async","asynchronous","iteration","iterate","loop","foreach","parallel","concurrent","array","flow","control flow"],"dependencies":{},"devDependencies":{"alessioalex-standard":"^1.0.0","async":"^1.5.0","husky":"^0.10.1","lolex":"^1.3.2","matcha":"^0.6.0","tape":"^4.2.2"},"scripts":{"bench":"matcha bench/*.js","test":"tape test.js","lint":"alessioalex-standard","precommit":"npm run lint && npm test"},"author":{"name":"Alexandru Vladutu","email":"alexandru.vladutu@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/alessioalex/tiny-each-async.git"},"gitHead":"0e1dc5f28868088f56c9c77833388f6e1b72b9c4","bugs":{"url":"https://github.com/alessioalex/tiny-each-async/issues"},"homepage":"https://github.com/alessioalex/tiny-each-async#readme","_id":"tiny-each-async@2.0.3","_shasum":"8ebbbfd6d6295f1370003fbb37162afe5a0a51d1","_from":".","_npmVersion":"3.8.5","_nodeVersion":"5.2.0","_npmUser":{"name":"alessioalex","email":"npm@services.alessioalex.com"},"dist":{"shasum":"8ebbbfd6d6295f1370003fbb37162afe5a0a51d1","tarball":"https://registry.npmjs.org/tiny-each-async/-/tiny-each-async-2.0.3.tgz","integrity":"sha512-5ROII7nElnAirvFn8g7H7MtpfV1daMcyfTGQwsn/x2VtyV+VPiO5CjReCJtWLvoKTDEDmZocf3cNPraiMnBXLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLh471bVEWW2hWe7RRo8vR1THX9QJ7FoTCuPSRduNOUAIhAKiAgadhil+lbABCg9Bj0+6vgIhyFr8JOriHFYrPbj3b"}]},"maintainers":[{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tiny-each-async-2.0.3.tgz_1459867636439_0.2722050445154309"}}},"readme":"# tiny-each-async\n\nAsynchronous iterator function similar to (and inspired by) [async.each](https://github.com/caolan/async#eacharr-iterator-callback), with support for concurrency limit and item index.\n\n[![build status](https://secure.travis-ci.org/alessioalex/tiny-each-async.png)](http://travis-ci.org/alessioalex/tiny-each-async)\n\n## Usage\n\n### each(array, [limit], iterator, [callback])\n\nArguments:\n\n- array - An array of items to iterate through.\n- [limit] - An (optional) integer for determining how many `iterator` functions should be run in parallel.\n- iterator(item, [index], callback) - A function to be applied to each item in the array. When it has finished processing the item then the `callback` function should be called (in case of a failure with the `error` argument, otherwise none).\n- callback(err) - An optional callback function that gets called when either all `iterator` functions have finished or one of them has returned an error.\n\n### Example\n\n```js\nvar eachAsync = require('tiny-each-async');\nvar timeouts = [300, 100, 2000];\n\neachAsync(['file1', 'file2', 'file3'], function(item, index, next) {\n  setTimeout(function() {\n    console.log(item, index, timeouts[index]);\n    next();\n  }, timeouts[index]);\n}, function(err) {\n  return err ? console.error(err.stack) : console.log('all done');\n});\n```\n\nFor more examples checkout the [/examples](/examples) folder.\n\n## FAQ\n\n- Why the name?\n\nOther possible names were already taken, and the actual source code is tiny.\n\n- Why create another async library?\n\nBecause doing your own thing is fun.\n\n- What if my iterator function is sync, but I want it && the callback to be async?\n\nThen you might want to use [dezalgo](https://github.com/npm/dezalgo).\n\n## License\n\n[MIT](http://alessioalex.mit-license.org/)\n","maintainers":[{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"}],"time":{"modified":"2022-06-27T06:58:25.154Z","created":"2015-10-26T15:11:26.987Z","1.0.0":"2015-10-26T15:11:26.987Z","1.1.0":"2015-10-26T15:16:16.944Z","2.0.0":"2015-11-06T15:55:40.576Z","2.0.1":"2015-11-06T16:00:43.458Z","2.0.2":"2015-11-09T11:57:26.794Z","2.0.3":"2016-04-05T14:47:18.737Z"},"homepage":"https://github.com/alessioalex/tiny-each-async#readme","keywords":["each","async","asynchronous","iteration","iterate","loop","foreach","parallel","concurrent","array","flow","control flow"],"repository":{"type":"git","url":"git+https://github.com/alessioalex/tiny-each-async.git"},"author":{"name":"Alexandru Vladutu","email":"alexandru.vladutu@gmail.com"},"bugs":{"url":"https://github.com/alessioalex/tiny-each-async/issues"},"license":"MIT","readmeFilename":"README.md"}