simple promises/A+ implementation
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.travis.yml
LICENSE
README.md
package.json
promiseme.js

README.md

promise-me

This is really small implementation of promises/A+ written just to study promises a little bit more.

Installation

You can either use npm

$ npm install promiseme

or just simply use the promiseme.js file.

Usage

Create a deferred

var d = promiseme.deferred();

Fulfill a deferred

d.fulfill(value)

Reject a deferred

d.reject(reason)

Get a promise from a deferred

d.promise

Use then

d.then(onFulfilled, onRejected)

Docs

For more information about how promises works contact Promises/A+

Build status

Build Status