# async-promises

> Async control flow patterns using promises based on https://github.com/caolan/async

Latest version **0.2.3** (published 2020-07-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install async-promises
pnpm add async-promises
yarn add async-promises
bun add async-promises
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.3 |
| Published | 2020-07-16 |
| First published | 2015-11-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 25.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Igor Rafael |
| Maintainers | assisrafael |
| Keywords | async, promise, control, flow, patterns |

## Links

- npm: https://www.npmjs.com/package/async-promises
- Repository: https://github.com/assisrafael/async-promises
- Homepage: https://github.com/assisrafael/async-promises#readme
- Issues: https://github.com/assisrafael/async-promises/issues
- npm.io page: https://npm.io/package/async-promises

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 0.2.3 (latest) — 2020-07-16
- 0.2.2 — 2019-05-10
- 0.2.1 — 2017-09-29
- 0.2.0 — 2016-06-24
- 0.1.2 — 2015-12-09
- 0.1.1 — 2015-12-02
- 0.1.0 — 2015-11-20

## README

# async-promises [![Build Status](https://travis-ci.org/assisrafael/async-promises.svg)](https://travis-ci.org/assisrafael/async-promises)

[![NPM](https://nodei.co/npm/async-promises.png?compact=true)](https://nodei.co/npm/async-promises/)

Async control flow patterns using promises based on https://github.com/caolan/async

It needs an ES6 environment to work (Promises, Block-scoped binding constructs, etc) like modern browsers and node 4.

Example:

```javascript
var asyncP = require('async-promises');

var args = [];
return asyncP.each([1, 3, 2], (x) => {
  return new Promise(function(resolve) {
    setTimeout(() => {
      args.push(x);
      resolve();
    }, x * 25);
  });
})
.then(() => {
  console.log(args); //prints [1, 2, 3]
});
```


## Roadmap

- Collections
 - [x] each
 - [x] eachSeries
 - [ ] map
 - [ ] mapSeries
 - [ ] filter
 - [ ] filterSeries
 - [ ] reduce
 - [ ] reduceRight
 - [ ] some
 - [ ] every
- Control Flow
 - [x] series
 - [x] parallel
 - [x] waterfall
 - [ ] retry
 - [x] times
 - [x] timesSeries

---
_Source: https://npm.io/package/async-promises · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
