0.8.0 • Published 10 years ago

in-promise v0.8.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

in-promise is a minimal Promises/A+ implementation for browsers. ~700 bytes (gzip).

API

It is really minimal, and only provides a ES6 style Promise constructor plus a Promises/A+ compatible Promise#then method:

var p1 = new Promise(function (res, rej) {
  setTimeout(function () {
    res('Hello Promise')
  }, 100)
})
var p2 = p1.then(function (value) {
  console.log(value) // Hello Promise
})

This is no Promise#catch or Promise.all or Promise.race or ... Just Promise#then.

For a polyfill for ES6 Promise, check the es6 branch.

0.8.0

10 years ago

0.7.0

10 years ago

0.6.3

10 years ago

0.6.2

10 years ago

0.6.1

10 years ago

0.6.0

10 years ago

0.5.2

10 years ago

0.5.1

10 years ago

0.5.0

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago