promiseme

0.0.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    3
  • 0.0.1
    1

Package Sidebar

Install

npm i promiseme

Weekly Downloads

3

Version

0.0.2

License

none

Last publish

Collaborators

  • neojski