{"_id":"tiny-each-async","_rev":"3373321","name":"tiny-each-async","description":"Asynchronous iterator function for parallel processing.","dist-tags":{"latest":"2.0.3"},"maintainers":[{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"}],"time":{"modified":"2024-08-26T02:57:35.000Z","created":"2015-10-26T15:11:26.987Z","2.0.3":"2016-04-05T14:47:18.737Z","2.0.2":"2015-11-09T11:57:26.794Z","2.0.1":"2015-11-06T16:00:43.458Z","2.0.0":"2015-11-06T15:55:40.576Z","1.1.0":"2015-10-26T15:16:16.944Z","1.0.0":"2015-10-26T15:11:26.987Z"},"users":{},"author":{"name":"Alexandru Vladutu","email":"alexandru.vladutu@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/alessioalex/tiny-each-async.git"},"versions":{"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","size":2483,"noattachment":false,"key":"/tiny-each-async/-/tiny-each-async-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-each-async/download/tiny-each-async-2.0.3.tgz"},"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"},"directories":{},"publish_time":1459867638737,"_hasShrinkwrap":false,"_cnpm_publish_time":1459867638737,"_cnpmcore_publish_time":"2021-12-16T20:50:34.665Z"},"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","size":2448,"noattachment":false,"key":"/tiny-each-async/-/tiny-each-async-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-each-async/download/tiny-each-async-2.0.2.tgz"},"maintainers":[{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"}],"directories":{},"publish_time":1447070246794,"_hasShrinkwrap":false,"_cnpm_publish_time":1447070246794,"_cnpmcore_publish_time":"2021-12-16T20:50:34.886Z"},"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","size":2428,"noattachment":false,"key":"/tiny-each-async/-/tiny-each-async-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-each-async/download/tiny-each-async-2.0.1.tgz"},"maintainers":[{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"}],"directories":{},"publish_time":1446825643458,"_hasShrinkwrap":false,"_cnpm_publish_time":1446825643458,"_cnpmcore_publish_time":"2021-12-16T20:50:35.101Z"},"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","size":2428,"noattachment":false,"key":"/tiny-each-async/-/tiny-each-async-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-each-async/download/tiny-each-async-2.0.0.tgz"},"maintainers":[{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"}],"directories":{},"publish_time":1446825340576,"_hasShrinkwrap":false,"_cnpm_publish_time":1446825340576,"_cnpmcore_publish_time":"2021-12-16T20:50:35.289Z"},"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","size":2084,"noattachment":false,"key":"/tiny-each-async/-/tiny-each-async-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-each-async/download/tiny-each-async-1.1.0.tgz"},"maintainers":[{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"}],"directories":{},"publish_time":1445872576944,"_hasShrinkwrap":false,"_cnpm_publish_time":1445872576944,"_cnpmcore_publish_time":"2021-12-16T20:50:35.476Z"},"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","size":2090,"noattachment":false,"key":"/tiny-each-async/-/tiny-each-async-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/tiny-each-async/download/tiny-each-async-1.0.0.tgz"},"maintainers":[{"name":"alessioalex","email":"alexandru.vladutu@gmail.com"}],"directories":{},"publish_time":1445872286987,"_hasShrinkwrap":false,"_cnpm_publish_time":1445872286987,"_cnpmcore_publish_time":"2021-12-16T20:50:35.696Z"}},"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","_attachments":{},"homepage":"https://github.com/alessioalex/tiny-each-async#readme","bugs":{"url":"https://github.com/alessioalex/tiny-each-async/issues"},"license":"MIT"}