# to-bluebird

> Convert any type of promise to a Bluebird promise

Latest version **1.0.2** (published 2019-10-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install to-bluebird
pnpm add to-bluebird
yarn add to-bluebird
bun add to-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.2 |
| Published | 2019-10-29 |
| First published | 2019-10-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 1 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Richie Bendall |
| Maintainers | richienb |

## Links

- npm: https://www.npmjs.com/package/to-bluebird
- Repository: https://github.com/Richienb/to-bluebird
- npm.io page: https://npm.io/package/to-bluebird

## Dependencies (1)

- [convert-promise](https://npm.io/package/convert-promise.md) ^1.0.1

## Recent versions

- 1.0.2 (latest) — 2019-10-29
- 1.0.1 — 2019-10-29
- 1.0.0 — 2019-10-26

## README

# To Bluebird [![Travis CI Build Status](https://img.shields.io/travis/com/Richienb/to-bluebird/master.svg?style=for-the-badge)](https://travis-ci.com/Richienb/to-bluebird)

Convert any type of promise to a Bluebird promise

[![NPM Badge](https://nodei.co/npm/to-bluebird.png)](https://npmjs.com/package/to-bluebird)

## Install

```sh
npm install to-bluebird bluebird
```

## Usage

```js
const toBluebird = require("to-bluebird");

const es6Promise = new Promise(resolve => resolve("Hello World!")); // Regular native promise.
const bluebirdPromise = toBluebird(es6Promise); // Bluebird promise.
```

## API

### toBluebird(promise)

#### promise

Type: `PromiseLike`

The promise to convert.

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