3 ms·
> Express uses callbacks extensively This is true, Express goes way back to Node's pre-1.0 days before promises were a thing. For a more modern NodeJS experie
by thom_nic 9y ago
> Express uses callbacks extensively
This is true, Express goes way back to Node's pre-1.0 days before promises were a thing. For a more modern NodeJS experience, I'd recommend Koa http://koajs.com/ http://koajs.com/. Rule number one for pain-free JS development: do everything with promises, if not async/await.
Koa is still "lightweight" in the sense that you piece together your middleware + request handler chain similar to Express (or Flask!) but it's just as capable once you've added what you need.