# @astrocoders/waterfall

> This function receives an array of promises and resolves all them one by one when the execution of this function finish all promises passed will be resolved. This is more performative than Promise.all when you need to wait for a big array of promises.

Latest version **1.0.2** (published 2018-11-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @astrocoders/waterfall
pnpm add @astrocoders/waterfall
yarn add @astrocoders/waterfall
bun add @astrocoders/waterfall
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-11-01 |
| First published | 2018-08-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | medson10 |
| Maintainers | gabrielrubens, georgelima, guilhermedecampo, medson10 |

## Links

- npm: https://www.npmjs.com/package/@astrocoders/waterfall
- Repository: git@github.com:Astrocoders/waterfall
- Homepage: https://github.com/Astrocoders/waterfall#readme
- Issues: https://github.com/Astrocoders/waterfall/issues
- npm.io page: https://npm.io/package/@astrocoders/waterfall

## Recent versions

- 1.0.2 (latest) — 2018-11-01
- 1.0.1 — 2018-08-21
- 1.0.0 — 2018-08-20

## README

# Waterfall

This function receives an array of promises and resolves all them one by one when the execution of this function finish all promises passed will be resolved. This is more performative than Promise.all when you need to wait for a big array of promises.

# Install
````
yarn add @astrocoders/waterfall
````

# Usage
````
import waterfall from '@astrocoders/waterfall'

const result = await waterfall(
	list.map(item => async () => {
		return new Promise((resolve, reject) => resolve(item * 2))
	}
)
````

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