blob: 86c633b3f6be12d49b6231cce8dbfa4f02cd6142 [file] [log] [blame]
{
"name": "async-each",
"description": "No-bullshit, ultra-simple, 35-lines-of-code async parallel forEach / map function for JavaScript.",
"version": "0.1.6",
"license": "MIT",
"keywords": [
"async",
"forEach",
"each",
"map",
"asynchronous",
"iteration",
"iterate",
"loop",
"parallel",
"concurrent",
"array",
"flow",
"control flow"
],
"homepage": "https://github.com/paulmillr/async-each/",
"author": {
"name": "Paul Miller",
"url": "http://paulmillr.com/"
},
"repository": {
"type": "git",
"url": "git://github.com/paulmillr/async-each.git"
},
"main": "index.js",
"dependencies": {},
"readme": "# async-each\n\nNo-bullshit, ultra-simple, 35-lines-of-code async parallel forEach function for JavaScript.\n\nWe don't need junky 30K async libs. Really.\n\nFor browsers and node.js.\n\n## Installation\n* Just include async-each before your scripts.\n* `npm install async-each` if you’re using node.js.\n* `component install paulmillr/async-each` if you’re using [component(1)](https://github.com/component/component).\n* `bower install async-each` if you’re using [Twitter Bower](http://bower.io).\n\n## Usage\n\n* `each(array, iterator, callback);` — `Array`, `Function`, `(optional) Function`\n* `iterator(item, next)` receives current item and a callback that will mark the item as done. `next` callback receives optional `error, transformedItem` arguments.\n* `callback(error, transformedArray)` optionally receives first error and transformed result `Array`.\n\nNode.js:\n\n```javascript\nvar each = require('async-each');\neach(['a.js', 'b.js', 'c.js'], fs.readFile, function(error, contents) {\n if (error) console.error(error);\n console.log('Contents for a, b and c:', contents);\n});\n```\n\nBrowser:\n\n```javascript\n// component(1)\nvar each = require('async-each');\neach(list, fn, callback);\n\n// Default:\nwindow.asyncEach(list, fn, callback);\n```\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2013 Paul Miller (http://paulmillr.com/)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the “Software”), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/paulmillr/async-each/issues"
},
"_id": "async-each@0.1.6",
"_from": "async-each@~0.1.5"
}