async-loops

2.0.2 • Public • Published

async-loops

Asynchronous for, while, do-while, map, and reduce loops using Promises.

Setup

  • Run npm install to install all dependencies

Scripts

Following are called via npm run:

  • test to run all tests and generate coverage report
  • test -- -i same as test but ignores linter warnings
  • docClone to clone your documentation repository
  • docGenerate to generate documentation locally
  • docPublish to generate and publish documentation on GitHub Pages

Documentation

JSDoc documentation

Usage

Resolve

Body of each loop should resolve. For map and reduce they should do so with a value.

Reject

Rejections are seen as errors and will be used to abort the loop. loops.break and loops.continue are special cases that are used as flow control.

Samples

Readme

Keywords

none

Package Sidebar

Install

npm i async-loops

Weekly Downloads

306

Version

2.0.2

License

ISC

Last publish

Collaborators

  • h2oboi89