Why Node.js libraries aren't promises by default
Why Node.js libraries aren't promises by default launched on January 3, 2020 with 9 votes, #922 of 3,486 launches that month and more than 75% of that year's launches. The site was still online in September 2026, 6 years on.
What it does
“Why does the AWS node sdk have this .promise() function that you can chain onto all its methods? Why doesn’t it just return a promise by default?” “How do they do that? (support both callbacks by default and a .promise() method)” I realised these were two excellent questions to trigger an explanation of why and where we are with promises and node. On researching this topic I learnt about a fascinating issue with node and promises. So this one’s for you, Ravish! “Why doesn’t the AWS node sdk just return a promise by default?” A simplistic answer to this is it’s because for a long time, before promises existed, the Node.js community settled on a convention that allows us to predictably deal…from nickmeldrum.com
Does a similar job
all alternatives →- ANA Node.js stream library that works with promises2018 · npmjs.com · ▲10
- DSDamn simple and useful promise pool for Node.js2020 · npmjs.com · ▲5
Nub – A Bun-like all-in-one toolkit for Node.jsJun 2026 · github.com · ▲277Colin here, creator of Nub. I’ve had the general shape of this in mind for years. Nub runs your code with stock `node`, augmented with a `--require` preload hook[0] that adds a transpiler (oxc-powered, packaged as a Node-API add-on), registers a module resolution hook[1], and injects polyfills as needed for APIs like `Worker`, `Temporal`, etc. All purely additive, your code ultimately runs using Node’s actual engine & stdlib implementations. [0] https://nodejs.org/api/cli.html#-require-module [1]…
And then...2013 · github.com · ▲14A minimal CommonJS promises library with useful things like parallel execution, fulfilments and exception handling, while retaining the beautiful simplicity of .then(). - askabt/andthen


More life & fun this month
the category →
A free city-building game in your browser. You are the mayor. You know what the city needs. Now get it past the zoning board, the neighbors, the appeals court and the next election.
Life & fun · 1d ago · permit.petercai.com
- IV
Life & fun · 13d ago · tanzaniaeducationproject.org

Turn a phone, tablet or TV into a sign. Type a message and it fills the screen: welcome signs, timers, Wi-Fi passwords and more. No app, no account, free.
Life & fun · 14d ago · bigwords.page

Play a free virtual guitar online with your keyboard or by touch. Slow songs down and see every chord, string and strum. Acoustic, classic, electric and bass.
Life & fun · 8d ago · guitoro.com

Carrier settings from iPhone, Pixel and Galaxy firmware, decoded and compared: APNs, VoLTE, 5G and Wi-Fi Calling per carrier, and what each build changed.
Life & fun · 12d ago · carrierexplode.com

Life & fun · 22d ago · space.bl2.net
Source: Show HN post ↗
Launched alongside, January 2020
the whole month →
MicroAcquire▲1,552A free & anonymous startup acquisition marketplace
Commerce · 2020 · microacquire.com
YourStack▲1,251A new community for sharing the products you use and ❤️
Life & fun · 2020 · yourstack.com

The ultimate resource for starting profitable side projects
Growth · 2020 · indiehackers.com
- IW
Hey folks. Last year I was fortunate enough to sign a deal to write a book with my favorite technical publisher, The Pragmatic Bookshelf. When I started out as an Engineering Manager many years ago, I found that there wasn't a huge amount of material that specifically and practically helped me understand how to do my job. When you learn to program there's all of these amazing tutorials, examples and guides, but what was there for new managers? In response to this, a couple of years ago I started a blog over at https://www.theengineeringmanager.com which got a decent amount of…
Work · 2020

