{"name":"async-each","description":"No-bullshit, ultra-simple, 35-lines-of-code async parallel forEach / map function for JavaScript.","version":"1.0.4","license":"MIT","homepage":"https://github.com/paulmillr/async-each/","author":{"name":"Paul Miller","url":"https://paulmillr.com/"},"repository":{"type":"git","url":"git+https://github.com/paulmillr/async-each.git"},"main":"index.js","dependencies":{},"keywords":["async","forEach","each","map","asynchronous","iteration","iterate","loop","parallel","concurrent","array","flow","control flow"],"funding":[{"type":"individual","url":"https://paulmillr.com/funding/"}],"gitHead":"7e0a574d9bb6bd8432b35145a1154aaa59031c50","bugs":{"url":"https://github.com/paulmillr/async-each/issues"},"_id":"async-each@1.0.4","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-qL5v0vnRtD4rxlrzLz3WMnMfTvTrMf3IK1xFCF0Q5vqXJkULhM13gO2ynE8RZMjE+bPcH0AUHgcd5BU1FtO1tA==","shasum":"edce07c2f2296c2c2a281c59553901a29fc31ea9","tarball":"http://registry-npm.ywwl.com/async-each/download/async-each-1.0.4.tgz","fileCount":4,"unpackedSize":4280,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFB2FdBszJMAdvGLFAbqi/bnD+XpjXf67h4OZ+JPQEypAiBj/Weo4aSrezCQP0fj5gLGD6zDMLmZ54Hvbjrkaegz4Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj1JX0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrq6xAAkI2mQuxlaK5Ye5KFeRDyuxFolxW6SZH0pU+zObz9EmlUh+2S\r\nAwLOPDRcn3tpsNbAufuba3nvF7CidhM0g/r3eRPddRhKddwS5LN7/i3tV0jY\r\nBKnFCgXI0pqJ4SSB1bn0xgBaw7unUn67qhgIENaPIN0lC4JY4y/WlB/4EHOm\r\n4rXrXrh+HBi1X1NNU1osNRjJZi+s50L4LTX1exw89w4eNNochPEXiBo16SS8\r\nHDVH3UJL1+oX+zbOAMDJgL8HNnSme2jsccvLd+P3p5sF9UpA+HOiTSziy+jd\r\no5XF8/u/s3PkSM1LkAIaK+uuye/AWKNe4wSqWRcUZiatkjtJ4225FQJdImVM\r\nAZF7EXwnd52nQUHfarY6W/J5PEijs0E5/kRwL3870jXgw6++Ms274ttkpbSk\r\ntuCWUEerRUMw1nID2oiH27P1GT3Va692ffOZUAG678bixqg/SvFpmm/AGDoV\r\nPwHJfgj61r15XStAbyETogSSCrmIC8ljRMITkKwiTBdq717x1cYgnKF+9Wt5\r\na92vQj5ZWiQWkbkUtBAcvPpgtFxcaUdKpyIxgtTm4r4SNIwCyFNF2q35tMd1\r\nr+XRfjjI/B9Ia5VhRDdWfJxqhvHkpgVsBu7qOesy+SDPBV8z3VgkeLa1ZReQ\r\nWWfz8J4OHAPMVznLa3rUsB3CoXGLH5/Vl7I=\r\n=8j/Z\r\n-----END PGP SIGNATURE-----\r\n","size":2109,"noattachment":false,"key":"/async-each/-/async-each-1.0.4.tgz"},"_npmUser":{"name":"paulmillr","email":"paul@paulmillr.com"},"directories":{},"maintainers":[{"name":"es128","email":"elan.shanker+npm@gmail.com"},{"name":"paulmillr","email":"paul@paulmillr.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-each_1.0.4_1674876404201_0.587165223871758"},"_hasShrinkwrap":false,"readme":"# async-each\n\nNo-bullshit, ultra-simple, 40-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## Usage\n\n`npm install async-each` if you're using NPM.\n\nFor browsers, just include async-each before your scripts and use global variable `asyncEach`\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\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\nasyncEach(list, fn, callback); // use global var in browser\n```\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 Paul Miller [(paulmillr.com)](https://paulmillr.com)\n\nSee [LICENSE](https://github.com/paulmillr/async-each/blob/master/LICENSE) file.\n","publish_time":1674876404341,"_cnpm_publish_time":1674876404341,"dist-tags":{"latest":"1.0.6"}}