q-promise
Full Promises/A+ compliance
Installation
npm install q-promise --save # alternatively you can use bower (minified version by default)bower install q-promise --save
ES6 Promise
// q-promise respects the es6 promise specification// you can use q-promise as global polyfillif !windowPromisewindowPromise = $q;
Example
;
output:
checkpoint 1 gogogo!checkpoint 2.1 whoops!# elapsed 400mscheckpoint 3 all right!
Tests
make test