包详细信息

then-js

isayme60.1.3

A tiny(only 200 lines) promise/A+ library

Promises/A+, promises-aplus, promise, then

自述文件

Promises/A+ logo

Then

A tiny(only 200 lines) promise/A+ library.

NPM Version Build Status

APIs

The APIs follow MDN Promise, refer it for more infomation.

Then.resolve(value)

Then.reject(reason)

Then.all(iterable)

Then.race(iterable)

Then.prototype.then(onFulfilled, onRejected)

Then.prototype.catch(onRejected)

Running the Promises/A+ Test Suite

  • npm install
  • npm test

Contact

email: isaymeorg@gmail.com