Here’s how you can easily work with async/await and Promises in express, right now!
@root/async-router: https://github.com/therootcompany/async-router
Express 5.0 promised native support for async/await and Promises - and it even delivered, but then was never officially published. It’s still stuck in alpha.
There are many 3rd party modules that add promise support to express, but most of them are just plain terrible.
Thankfully I express-promisify-router, which behaves exactly as any sane, rational person who has used express would expect it to behave. That said, since it doesn’t seem to be actively maintained, I added the ability to use error handler functions and republished it as @root/async-router.

#node #express #nodejs #javascript #web-development

Async, Await, and Promises in Express for Node.js
3.90 GEEK