# async-bluebird

> Promisified utilities for node and the browser

Latest version **1.0.4** (published 2018-06-03) · MIT license · 0 weekly downloads

## Install

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

## 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.4 |
| Published | 2018-06-03 |
| First published | 2014-09-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 216 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Gregory F.J. Hogue |
| Maintainers | gfjhogue |
| Keywords | async, bluebird, callback, promise, utility |

## Links

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

## Dependencies (2)

- [async](https://npm.io/package/async.md) 2.6.1
- [bluebird](https://npm.io/package/bluebird.md) 3.5.1

## 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.0.4 (latest) — 2018-06-03
- 1.0.3 — 2017-12-29
- 1.0.2 — 2017-10-29
- 1.0.1 — 2017-10-23
- 1.0.0 — 2017-10-23
- 0.0.1 — 2014-09-02

## README

# async-bluebird

[![npm version](https://badge.fury.io/js/async-bluebird.svg)](https://badge.fury.io/js/async-bluebird) [![Build Status](https://travis-ci.org/GFJHogue/async-bluebird.svg?branch=master)](https://travis-ci.org/GFJHogue/async-bluebird)

A [`bluebird` promisified](http://bluebirdjs.com/docs/api/promise.promisify.html) wrap of [`async`](https://github.com/caolan/async) - async utitlities for node and the browser.

I made this because I felt like it's more productive than manually wrapping `async` functions with Promises every time I want to use them.


## Install & Require:

* `npm i async-bluebird`

```js
// Promisified async & bluebird Promises
var {async, Promise} = require('async-bluebird');

// Just Promisified async
var async = require('async-bluebird');
```


## Usage:

* See `async` documentation at: https://caolan.github.io/async/

* See `Promise` documentation at: http://bluebirdjs.com/docs/api-reference.html

### Example

```js
// With callback:
async.each([1,2,3], (item, callback) => {
  // Callback on each item
}, (err) => {
  if (err) {
    // Handle error
  } else {
    // Success
  }
})

// With Promise:
async.each([1,2,3], (item, callback) => {
  // Callback on each item
}).then(() => {
  // Success
}).catch((err) => {
  // Handle error
});
```


## Why use Promises?

Converting `async`'s utility functions into Promises allows us to easily integrate them with our promise-using code and promise-chains.

* Why Promises?: http://bluebirdjs.com/docs/why-promises.html

* Understand promises before you start using async/await: https://medium.com/@bluepnume/learn-about-promises-before-you-start-using-async-await-eb148164a9c8

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