nowfound

Life & fun · January 3, 2020

WN

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 →
  • AN
  • DS
  • Nub – A Bun-like all-in-one toolkit for Node.jsJun 2026 · github.com · ▲277

    Colin 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 · ▲14

    A minimal CommonJS promises library with useful things like parallel execution, fulfilments and exception handling, while retaining the beautiful simplicity of .then(). - askabt/andthen

  • SocketCluster2015 · socketcluster.io · ▲93

    A scalable realtime engine for Node.js

  • Building APIs with Node.js2016 · leanpub.com · ▲130

    Build scalable APIs in Node.js platform

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, January 2020

the whole month →
  • MicroAcquire▲1,552

    A free & anonymous startup acquisition marketplace

    Commerce · 2020 · microacquire.com

  • YourStack▲1,251

    A 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

  • Auto-generate IG Stories, Pinterest Pins and more

    Growth · 2020 · bannerbear.com

  • byte▲604

    A new looping video app from the founder of Vine

    Growth · 2020