1.1.0 • Published 6 years ago

nuo v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

诺(諾)nuò

:two_hearts: Lightweight ES6 Promise polyfill for the browser and node. Adheres closely to the spec. It is a perfect polyfill IE, Firefox or any other browser that does not support native promises.

Travis Coveralls dependencies devDependency Status NPM version

This implementation is based on taylorhakes/promise-polyfill and then/promise. It has been changed to use the prototype for performance and memory reasons.

For API information about Promises, please check out this article HTML5Rocks article.

Changelog

1.0.0: should NOT override global promise

Browser Support

IE8+, Chrome, Firefox, IOS 4+, Safari 5+, Opera

Usage

$ npm install nuo --save
import Promise from 'nuo'

new Promise((resolve, reject, notify) => {
  // resolve, reject, notify
}).then(value => {
  // do something
}).catch(error => {
  // do something
}).progress(value => {
  // do something
}).finally(() => {
  // do something
})

warning: the non-standard progress and finally are NOT recommended to use, though they are working fine.

Testing

npm install
npm test

License

MIT

1.1.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

7 years ago

1.0.0

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago

0.0.0

8 years ago