bluebird

Getting started with bluebird

Remarks#

This section provides an overview of what bluebird is, and why a developer might want to use it.

It should also mention any large subjects within bluebird, and link out to the related topics. Since the Documentation for bluebird is new, you may need to create initial versions of those related topics.

Installation or Setup

Node.js

npm install bluebird

Then:

var Promise = require("bluebird");

Browsers

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.


This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow