Minimal Promises/A+ lib

npm install promisesaplus
2 downloads in the last day
15 downloads in the last week
81 downloads in the last month


A Minimal, fully Promises/A+ compliant library.

Promises/A+ spec here:


  • promise() - Created a promise. Can pass an optional obj argument. If passed, promise methods are attached to passed object.

Promise Methods

  • then(onFulfill, onReject) - bind fulfillment/rejection handlers to the promise. Returns a promise object
  • fulfill(value) - fulfills the promise with the passed value.
  • reject(reason) - rejects the promise with the passed reason.

For all behaviors, see the spec.

npm loves you