1.0.6 • Published 2 years ago

async-each v1.0.6

Weekly downloads
13,546,027
License
MIT
Repository
github
Last release
2 years ago

async-each

No-bullshit, ultra-simple, 40-lines-of-code async parallel forEach function for JavaScript.

We don't need junky 30K async libs. Really.

For browsers and node.js.

Usage

npm install async-each if you're using NPM.

For browsers, just include async-each before your scripts and use global variable asyncEach

  • each(array, iterator, callback)Array, Function, (optional) Function
  • iterator(item, next) receives current item and a callback that will mark the item as done. next callback receives optional error, transformedItem arguments.
  • callback(error, transformedArray) optionally receives first error and transformed result Array.
var each = require('async-each');
each(['a.js', 'b.js', 'c.js'], fs.readFile, function(error, contents) {
  if (error) console.error(error);
  console.log('Contents for a, b and c:', contents);
});

asyncEach(list, fn, callback); // use global var in browser

License

The MIT License (MIT)

Copyright (c) 2016 Paul Miller (paulmillr.com)

See LICENSE file.

vuedragdropuploadimageskilli8n-react-native-fast-image@arisageha/react-lazyload@arisageha/react-lazyload-fix@cashremit/cr-streamline-iconsbb-chat@ihikmawan/tailwindcss-multi-theme-l2@frxf/frxf@phil8795/pecuniarius-api@texttree/demo-bsa-reference-rcl@fundefund/funde_ckgql_din_mod@l1nyanm1ng/react-picture-viewercthpb-plugin-socialuinz-notificationjs4cytoscape@saaspe/components@everything-registry/sub-chunk-1175ondcastor-coretaskingtartifacts-clitemplatestest-carosello-campusteadanteawind-core-libvue-infinite-loading-propsvue-button-test1webchewescheme-jssupercluster-googlemaps-adapter-clonestechfox-icontechfox-react-feathertemplatetestapateste_cegidsvelte-component-libtextfield-samplevscode-chokidarvue-compmentvcloudcam-playkit-js-hlsvideo-multi-uploadervue-dev-clone@dsktschy/chokidar@ctfdio/picocss-themes@ct-note/table@ct-note/warning@ct-note/image@ct-note/inline-code@ct-note/list@ct-note/marker@ct-note/quote@ct-note/simple-image@ct-note/checklist@ct-note/code@ct-note/delimiter@ct-note/embed@ct-note/header@cube-design/react@contentpass/pubsub@blkmarketco/components-library@beldore/react-otp-input@caneco/siema@rstacruz/pnpm@percent/percent-api-hooks@rbc-public/react-selectable-fast@rootem/automod@rootem/autoroles@rootem/customcommands@rootem/dyno-core@rootem/manager@rootem/moderation@rootem/modules@rootem/musicgenerator-bootstrap-boilerplate-templateaurora-corejiuye-uiivanpantekjeuxuijesusdemojs-utils-jll2kad-telemetry-jska-flow.jskafirchain-tetris3.0.0@simstudio/htmldiff@brucearmstrong/sass-librarylayui-customdfeuk-frontenddfeuk-frontend-manualstyledbuttonxxstart-starwars-libstnenopmoc-iustock-ticker-react-widgetsolregex2uhuy-1uhuy-2uhuy-3tingzi-vuepresstinymce-plugin-toy
1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

9 years ago

1.0.0

10 years ago

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

12 years ago

0.1.3

12 years ago

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago