{"_id":"each-parallel-async","_rev":"33308","name":"each-parallel-async","description":"Asynchronously calls a function on each element in an array in parallel.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:06:08.000Z","created":"2017-09-11T02:28:14.122Z","1.0.0":"2017-09-11T02:28:14.122Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/each-parallel-async.git"},"versions":{"1.0.0":{"name":"each-parallel-async","description":"Asynchronously calls a function on each element in an array in parallel.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/each-parallel-async","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/each-parallel-async.git"},"bugs":{"url":"https://github.com/jonschlinkert/each-parallel-async/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^3.5.0"},"keywords":["array","async","callback","each","forEach","iterate","iterator","parallel"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["arr-flatten","arr-reduce","array-unique","async-array-reduce","each-series-async"]},"lint":{"reflinks":true}},"gitHead":"1b1627cee740bd09fde883a5771554b8363833bd","_id":"each-parallel-async@1.0.0","_npmVersion":"5.4.1","_nodeVersion":"8.4.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"91783e190000c7dd588336b2d468ebaf71980f7b","size":2982,"noattachment":false,"key":"/each-parallel-async/-/each-parallel-async-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/each-parallel-async/download/each-parallel-async-1.0.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/each-parallel-async-1.0.0.tgz_1505096893203_0.7343539274297655"},"directories":{},"publish_time":1505096894122,"_cnpm_publish_time":1505096894122,"_hasShrinkwrap":false}},"readme":"# each-parallel-async [![NPM version](https://img.shields.io/npm/v/each-parallel-async.svg?style=flat)](https://www.npmjs.com/package/each-parallel-async) [![NPM monthly downloads](https://img.shields.io/npm/dm/each-parallel-async.svg?style=flat)](https://npmjs.org/package/each-parallel-async) [![NPM total downloads](https://img.shields.io/npm/dt/each-parallel-async.svg?style=flat)](https://npmjs.org/package/each-parallel-async) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/each-parallel-async.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/each-parallel-async)\n\n> Asynchronously calls a function on each element in an array in parallel.\n\nFollow this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), for updates on this project and others.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save each-parallel-async\n```\n\n## Usage\n\n```js\nvar each = require('each-parallel-async');\nvar result = [];\n\neach([1, 2, 3, 4, 5, 6], function(ele, next) {\n  result.push(ele * (i + 1));\n  next();\n}, function (err) {\n  console.log(result);\n  //=> [ 1, 4, 9, 16, 25, 36 ]\n});\n```\n\n**Params**\n\n* `array` **{Array}** - (required) Array of elements to loop over\n* `next` **{Function}** - (required) Function to call on each element in the array\n* `callback` **{Function}** - (required) Final callback function, called after `next` is called on each element in the array.\n\n## About\n\n### Related projects\n\nYou might also be interested in these projects:\n\n* [arr-flatten](https://www.npmjs.com/package/arr-flatten): Recursively flatten an array or arrays. | [homepage](https://github.com/jonschlinkert/arr-flatten \"Recursively flatten an array or arrays.\")\n* [arr-reduce](https://www.npmjs.com/package/arr-reduce): Fast array reduce that also loops over sparse elements. | [homepage](https://github.com/jonschlinkert/arr-reduce \"Fast array reduce that also loops over sparse elements.\")\n* [array-unique](https://www.npmjs.com/package/array-unique): Remove duplicate values from an array. Fastest ES5 implementation. | [homepage](https://github.com/jonschlinkert/array-unique \"Remove duplicate values from an array. Fastest ES5 implementation.\")\n* [async-array-reduce](https://www.npmjs.com/package/async-array-reduce): Async array reduce. Asynchronously applies a function against an accumulator and each element in an… [more](https://github.com/jonschlinkert/async-array-reduce) | [homepage](https://github.com/jonschlinkert/async-array-reduce \"Async array reduce. Asynchronously applies a function against an accumulator and each element in an array (from left to right, in series) to reduce it to a single value.\")\n* [each-series-async](https://www.npmjs.com/package/each-series-async): Asynchronously calls a function on each element in an array in series. | [homepage](https://github.com/jonschlinkert/each-series-async \"Asynchronously calls a function on each element in an array in series.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on September 10, 2017._","_attachments":{},"homepage":"https://github.com/jonschlinkert/each-parallel-async","bugs":{"url":"https://github.com/jonschlinkert/each-parallel-async/issues"},"license":"MIT"}