1.0.0 • Published 9 years ago

robin-egg-bluebird v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

Robin Egg Bluebird

A tiny Promises/A+ compliant implementation inspired by the official Crayola color.

Quick Start

npm install robin-egg-bluebird

then:

var Promise = require('robin-egg-bluebird');

Example

var myPromise = new Promise(function(resolve, reject) {
  // do something async...
    if (error) {
      reject(error);
    }
    resolve(successfulValue); // Pass to .then handler
});

myPromise().then(function(success) {
  // success is successfulValue from above
});

Implementation

Created with help of the Promises/A+ test suite