JSPM

  • Created
  • Published
  • Downloads 12834998
  • Score
    100M100P100Q220756F
  • License MIT

A polyfill for ES6-style Promises, tracking rsvp

Package Exports

  • es6-promise
  • es6-promise/package.json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (es6-promise) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ES6-Promises

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.

Downloads

Node.js

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