W3cubDocs

/Bluebird

Getting Started

This article is partially or completely unfinished. You are welcome to create pull requests to help completing this article.

Node.js

npm install bluebird

Then:

var Promise = require("bluebird");

Browsers

(See also Installation.)

There are many ways to use bluebird in browsers:

When using script tags the global variables Promise and P (alias for Promise) become available. Bluebird runs on a wide variety of browsers including older versions. We'd like to thank BrowserStack for giving us a free account which helps us test that.

© 2013–2017 Petka Antonov
Licensed under the MIT License.
http://bluebirdjs.com/docs/getting-started.html