# bluebirdify

> Sets the global Promise in your JS env to use Bluebird

Latest version **1.1.1** (published 2015-11-09) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2015-11-09 |
| First published | 2015-10-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | cdaringe |
| Maintainers | cdaringe |

## Links

- npm: https://www.npmjs.com/package/bluebirdify
- Repository: https://github.com/cdaringe/bluebirdify
- Issues: https://github.com/cdaringe/bluebirdify/issues
- npm.io page: https://npm.io/package/bluebirdify

## Dependencies (2)

- [errio](https://npm.io/package/errio.md) ^1.2.1
- [bluebird](https://npm.io/package/bluebird.md) *

## Recent versions

- 1.1.1 (latest) — 2015-11-09
- 1.1.0 — 2015-10-21
- 1.0.4 — 2015-10-14
- 1.0.3 — 2015-10-14
- 1.0.2 — 2015-10-07
- 1.0.1 — 2015-10-07
- 1.0.0 — 2015-10-07

## README

[ ![Codeship Status for cdaringe/bluebirdify](https://codeship.com/projects/e7383b50-4eba-0133-21f0-0a25db2949d0/status?branch=master)](https://codeship.com/projects/107025)

# bluebirdify

Sets Bluebird Promises as the global promises for your app.

Supports CommonJS (node), AMD, and browser-global via UMD!

## usage
Basic case:
```js
require('bluebirdify')(); // done! now, Promise === Bluebird
```

To handle uncaught exceptions:
```js
require('bluebirdify')({
    onuncaught: function(err) { ... }  // or `chirp: true or function`
});

// or,
bluebirdify = require('bluebirdify');
bluebirdify();
bluebirdify.chirp(function(err) { ... }); // or
bluebirdify.handleUncaught(function(err) { ... });
```

You can even `chirp()`/`handleUncaught()` [same method] with no handler passed in to get the basic console logging onUnhandled rejection.  The error is re-thrown after error content is logged.

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