[Node.js] How to Use Promises in a Callback-based Codebase
Hi! I'm Gaurang. I’ve worked extensively with Node.js in the past, and during that time, I spent a lot of effort wrangling with different async patterns — callbacks, promises, and async/await. This article is part of my series, "My guide to getting t...
![[Node.js] How to Use Promises in a Callback-based Codebase](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1748197190690%2F11f083ef-6560-4012-aea7-7e78540773c4.png&w=3840&q=75)
![[Node.js] Using callback-based functions when the rest of the code uses Promises](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1748716152326%2Fbc59c7a6-7b61-4928-b1fd-43f865e71238.png&w=3840&q=75)
![[Node.js] Why using sync versions of async functions is bad.](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1678817401656%2F3fb2299a-e5ae-4637-89bd-870f3db6130c.png&w=3840&q=75)
