Skip to content

danthareja/robin-egg-bluebird

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
Promises/A+ logo

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published