# foreach-async

> Array foreach with capabilities to handle an async callback

Latest version **1.1.1** (published 2014-07-12) · ISC license · 0 weekly downloads

## Install

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

## 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.1.1 |
| Published | 2014-07-12 |
| First published | 2014-05-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Sam Newman |
| Maintainers | sonewman |
| Keywords | array, foreach, async |

## Links

- npm: https://www.npmjs.com/package/foreach-async
- Repository: git@github.com:sonewman/foreach-async
- Homepage: https://github.com/sonewman/foreach-async
- Issues: https://github.com/sonewman/foreach-async/issues
- npm.io page: https://npm.io/package/foreach-async

## 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

- 1.1.1 (latest) — 2014-07-12
- 1.1.0 — 2014-05-05
- 1.0.0 — 2014-05-05

## README

# foreach-async

Array forEach which handles asynchronous operations in Node and the browser (using Browserify, etc.)

install:

```sh
$ npm i foreach-async
```

Usage:
```javascript
var forEach = require('foreach-async')

forEach(['a', 'b', 'c'], function (value, index, array) {
  
  // do something async
  something.async(function () {
    // signify done, passing optional result
    this.done(*result*)
  }.bind(this))

}, function (results) {
  // called after all array items have been
  // iterated, all values passed to done
  // are accessible in the 'results' array
})

```

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