A curated list of useful resources for JavaScript Promises
1,761
63 commits
updated Dec 15, 2023
A curated list of useful resources for JavaScript Promises
Inspired by the awesome list thing. Not to be confused with other awesome promises like "I promise you a million dollars" or "I promise you'll stay fit and never have to go to the gym again".
Table of Contents
These implement no more or less than the es6 spec. They make great polyfills and are exceptionally compatible with native promises.
All of these provide more features than the language yet remain compatible. Node + Browsers for all.
nodeify, denodify and done() additions.pinkie. Great for node library authors.Native and strictly spec-compliant promises are awesome for compatibility, future-proofness, library authors, and browsers. However, libraries like bluebird patch goodies onto the Promise constructor and prototype. Solution? tiny modules of course!
.then() or .catch() is calledPromise.race()Promise#try() ponyfill - Starts a promise chainPromise#finally() ponyfill - Invoked when the promise is settled regardless of outcomePromise.all() but for Map and Objectbluebird.method. Turn a synchronously-returning method into a promise-returning one.bluebird.coroutine.task.js and bluebird.coroutine, but supports thunks too.nodeify method which calls a Node-style callback on resolution or rejection.Licensed under the Creative Commons CC0 License.
7,372 followers · starred Sep 2015
1,017 followers · starred Nov 2017
1,061 followers · starred Jan 2016
117 followers · starred Aug 2018
A curated list of useful resources for JavaScript Promises
1,761
63 commits
updated Dec 15, 2023
A curated list of useful resources for JavaScript Promises
Inspired by the awesome list thing. Not to be confused with other awesome promises like "I promise you a million dollars" or "I promise you'll stay fit and never have to go to the gym again".
Table of Contents
These implement no more or less than the es6 spec. They make great polyfills and are exceptionally compatible with native promises.
All of these provide more features than the language yet remain compatible. Node + Browsers for all.
nodeify, denodify and done() additions.pinkie. Great for node library authors.Native and strictly spec-compliant promises are awesome for compatibility, future-proofness, library authors, and browsers. However, libraries like bluebird patch goodies onto the Promise constructor and prototype. Solution? tiny modules of course!
.then() or .catch() is calledPromise.race()Promise#try() ponyfill - Starts a promise chainPromise#finally() ponyfill - Invoked when the promise is settled regardless of outcomePromise.all() but for Map and Objectbluebird.method. Turn a synchronously-returning method into a promise-returning one.bluebird.coroutine.task.js and bluebird.coroutine, but supports thunks too.nodeify method which calls a Node-style callback on resolution or rejection.Licensed under the Creative Commons CC0 License.
7,372 followers · starred Sep 2015
1,017 followers · starred Nov 2017
1,061 followers · starred Jan 2016
117 followers · starred Aug 2018