3 ms·
> You can easily avoid callback-hell by making the callback you pass in to expressjs async and use await inside of it, without much drawbacks. I thought this w
by tshaddox 4y ago
> You can easily avoid callback-hell by making the callback you pass in to expressjs async and use await inside of it, without much drawbacks.
I thought this was slightly awkward due to error handling, but it looks like Express 5 (in beta) supports async callbacks natively.
- aobdev 4y agoI'm sorry to point out that the first 5.0 alpha came out in 2014 and still hasn't been released. When people talk about the ecosystem/battle-tested-ness/quality of express I think that unfortunately doesn't extend to anything other than the latest major on npm. It's not "modern" but it's still a good tool.