1.0.2 • Published 5 years ago

to-bluebird v1.0.2

Weekly downloads
11
License
MIT
Repository
github
Last release
5 years ago

To Bluebird Travis CI Build Status

Convert any type of promise to a Bluebird promise

NPM Badge

Install

npm install to-bluebird bluebird

Usage

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.

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago