# bluebird2

> bluebird v2.x

Latest version **3.0.1** (published 2019-04-04) · MIT license · 0 weekly downloads

## Install

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

## 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 | 3.0.1 |
| Published | 2019-04-04 |
| First published | 2016-04-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Overlook Motel |
| Maintainers | overlookmotel |
| Keywords | bluebird |

## Links

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

## Dependencies (1)

- [bluebird](https://npm.io/package/bluebird.md) 2.11.0

## 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

- 3.0.1 (latest) — 2019-04-04
- 3.0.0 — 2016-08-07
- 2.1.0 — 2016-06-17
- 2.0.0 — 2016-06-12
- 1.2.0 — 2016-04-17
- 1.1.1 — 2016-04-17
- 1.1.0 — 2016-04-17
- 1.0.0 — 2016-04-07

## README

# bluebird2.js

# bluebird v2.x

## Current status

[![NPM version](https://img.shields.io/npm/v/bluebird2.svg)](https://www.npmjs.com/package/bluebird2)
[![Build Status](https://img.shields.io/travis/overlookmotel/bluebird2/master.svg)](http://travis-ci.org/overlookmotel/bluebird2)
[![Dependency Status](https://img.shields.io/david/overlookmotel/bluebird2.svg)](https://david-dm.org/overlookmotel/bluebird2)
[![Dev dependency Status](https://img.shields.io/david/dev/overlookmotel/bluebird2.svg)](https://david-dm.org/overlookmotel/bluebird2)
[![Coverage Status](https://img.shields.io/coveralls/overlookmotel/bluebird2/master.svg)](https://coveralls.io/r/overlookmotel/bluebird2)

## Usage

Exports [bluebird](https://www.npmjs.com/package/bluebird) Promise library v2.x.

Why on earth would you use this rather than bluebird itself? Well you probably wouldn't, and shouldn't.

Only reason is along with [bluebird3](https://www.npmjs.com/package/bluebird3) if you need to load both versions v2.x and v3.x of bluebird simultaneously, for example for running tests on a module which should work with either version.

```js
var Bluebird2 = require('bluebird2');
var Bluebird3 = require('bluebird3');
// Now you have both. Whoopee!
```

### `Bluebird.getNewLibraryCopy()`

This module adds one method to the Bluebird constructor if not present already: `.getNewLibraryCopy()`

`.getNewLibraryCopy()` returns a new independent instance of the Bluebird library.

```js
var Bluebird = require('bluebird2');
var BluebirdX = Bluebird.getNewLibraryCopy();

console.log(BluebirdX != Bluebird); // true
```

### `Bluebird.version`

The module adds `.version` property to the Bluebird constructor, containing the semver version of Bluebird.

```js
var Bluebird = require('bluebird2');
console.log(Bluebird.version); // e.g. '2.10.2'
```

## Tests

Use `npm test` to run the tests. Use `npm run cover` to check coverage.

## Changelog

See [changelog.md](https://github.com/overlookmotel/bluebird2/blob/master/changelog.md)

## Issues

If you discover a bug, please raise an issue on Github. https://github.com/overlookmotel/bluebird2/issues

## Contribution

Pull requests are very welcome. Please:

* ensure all tests pass before submitting PR
* add an entry to changelog
* add tests for new features
* document new functionality/API additions in README

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