A polyfill for ES6-style Promises, tracking rsvp

npm install es6-promise
66 downloads in the last day
1 217 downloads in the last week
4 372 downloads in the last month


This is a polyfill of ES6 Promises. The implementation is basically an API remapping of rsvp.js.

For API details and how to use promises, see the JavaScript Promises HTML5Rocks article.



To install:

npm install es6-promise

To use:

var Promise = require('es6-promise').Promise;

Building & Testing

This package uses the grunt-microlib package for building.

Custom tasks:

  • grunt test - Run Mocha tests through Node and PhantomJS.
  • grunt test:phantom - Run Mocha tests through PhantomJS (browser build).
  • grunt test:node - Run Mocha tests through Node (CommonJS build).

TODO: docs will output wrong

npm loves you