# native-or-bluebird

> use either the native Promise or Bluebird

Latest version **1.2.0** (published 2015-02-12) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install native-or-bluebird
pnpm add native-or-bluebird
yarn add native-or-bluebird
bun add native-or-bluebird
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2015-02-12 |
| First published | 2014-07-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 45 |
| Author | Jonathan Ong |
| Maintainers | jongleberry, swatinem |
| Keywords | bluebird, promise, promises |

## Links

- npm: https://www.npmjs.com/package/native-or-bluebird
- Repository: https://github.com/normalize/native-or-bluebird
- Issues: https://github.com/normalize/native-or-bluebird/issues
- npm.io page: https://npm.io/package/native-or-bluebird

## 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.2.0 (latest) — 2015-02-12
- 1.1.2 — 2014-10-28
- 1.1.1 — 2014-08-30
- 1.1.0 — 2014-08-30
- 1.0.0 — 2014-07-16

## README

# native-or-bluebird

[![NPM version][npm-image]][npm-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Dependency Status][david-image]][david-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![Gittip][gittip-image]][gittip-url]

Use either `bluebird` or the native `Promise` implementation.
If no implementation is found, an error will be thrown:

```js
var Promise = require('native-or-bluebird');
```

The goal of this library is to be able to eventually remove this line
from your code and use native `Promise`s, allowing you to
to write future-compatible code with ease.
You should install `bluebird` in your libraries for maximum compatibility.

If you do not want an error to be thrown,
`require()` the `Promise` implementation directly.
If no implementation is found, `undefined` will be returned.

```js
var Promise = require('native-or-bluebird/promise');
if (Promise) // do stuff with promises
```

[npm-image]: https://img.shields.io/npm/v/native-or-bluebird.svg?style=flat-square
[npm-url]: https://npmjs.org/package/native-or-bluebird
[github-tag]: http://img.shields.io/github/tag/normalize/native-or-bluebird.svg?style=flat-square
[github-url]: https://github.com/normalize/native-or-bluebird/tags
[travis-image]: https://img.shields.io/travis/normalize/native-or-bluebird.svg?style=flat-square
[travis-url]: https://travis-ci.org/normalize/native-or-bluebird
[coveralls-image]: https://img.shields.io/coveralls/normalize/native-or-bluebird.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/normalize/native-or-bluebird?branch=master
[david-image]: http://img.shields.io/david/normalize/native-or-bluebird.svg?style=flat-square
[david-url]: https://david-dm.org/normalize/native-or-bluebird
[license-image]: http://img.shields.io/npm/l/native-or-bluebird.svg?style=flat-square
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/native-or-bluebird.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/native-or-bluebird
[gittip-image]: https://img.shields.io/gittip/jonathanong.svg?style=flat-square
[gittip-url]: https://www.gittip.com/jonathanong/

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