# async-series

> Run a series of callbacks in sequence.

Latest version **0.0.1** (published 2013-03-20) · MIT license · 0 weekly downloads

## Install

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

## 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.0.1 |
| Published | 2013-03-20 |
| First published | 2013-03-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Hugh Kennedy |
| Maintainers | hughsk |
| Keywords | async, series, callbacks, flow, control |

## Links

- npm: https://www.npmjs.com/package/async-series
- Repository: https://github.com/hughsk/async-series
- npm.io page: https://npm.io/package/async-series

## Alternatives

- [promise-throttle](https://npm.io/package/promise-throttle.md) — 44.2K weekly downloads
- [@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

## Recent versions

- 0.0.1 (latest) — 2013-03-20

## README

# async-series #

Run a series of callbacks in sequence, as simply as possible.

More or less equivalent to
[async.series](https://github.com/caolan/async#series) - solely
for the sake of keeping some modules tiny for
[browserify](http://browserify.org/).

## Installation ##

``` bash
npm install async-series
```

## Usage ##

**series(tasks, callback, safe)**

Where `tasks` is an array of functions, each with their own `done`
argument. `callback` is called when finished. Setting `safe` to true
will ensure there's at least a tick between each task to prevent RangeErrors.

``` javascript
series([
  function(done) {
    console.log('first thing')
    done()
  },
  function(done) {
    console.log('second thing')
    done(new Error('another thing'))
  },
  function(done) {
    // never happens, because "second thing"
    // passed an error to the done() callback
  }
], function(err) {
  console.log(err.message) // "another thing"
})
```

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