# multicb

> Simple way to aggregate multiple node-style callbacks

Latest version **1.2.2** (published 2017-07-23) · 0 weekly downloads

## Install

```sh
npm install multicb
pnpm add multicb
yarn add multicb
bun add multicb
```

## 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.2.2 |
| Published | 2017-07-23 |
| First published | 2014-09-17 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | pfraze |

## Links

- npm: https://www.npmjs.com/package/multicb
- Repository: https://github.com/pfrazee/multicb
- Homepage: https://github.com/pfrazee/multicb#readme
- Issues: https://github.com/pfrazee/multicb/issues
- npm.io page: https://npm.io/package/multicb

## Recent versions

- 1.2.2 (latest) — 2017-07-23
- 1.2.1 — 2016-01-24
- 1.2.0 — 2015-10-02
- 1.1.0 — 2015-01-10
- 1.0.0 — 2014-11-05
- 0.0.2 — 2014-09-18
- 0.0.1 — 2014-09-17

## README

# MultiCB

Simple way to aggregate multiple node-style callbacks

```js
var multicb = require('multicb')

// default usage

var done = multicb()
doAsync(done())
doAsync(done())
doAsync(done())
done(function(err, results) {
  console.log(err) // => undefined
  console.log(results) /* =>
  [
    [undefined, 'foo'],
    [undefined, 'bar'],
    [undefined, 'baz']
  ]
  */
})

// pluck argument

var done = multicb({ pluck: 1 })
doAsync(done())
doAsync(done())
doAsync(done())
done(function(err, results) {
  console.log(err) // => undefined
  console.log(results) /* =>
  [
    'foo',
    'bar',
    'baz'
  ]
  */
})

// spread argument

var done = multicb({ pluck: 1, spread: true })
doAsync(done())
doAsync(done())
doAsync(done())
done(function(err, a, b, c) {
  console.log(err) // => undefined
  console.log(a) // => 'foo'
  console.log(b) // => 'bar'
  console.log(c) // => 'baz'
})
```

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