DEV Community

loading...

Discussion on: Writing Async/Await Middleware in Express

Collapse
andywer profile image
Andy Wermke

If switching frameworks in an option you might wanna check out koa v2 (koajs.com). koa v1 used generator functions, but koa v2 comes with a 100% promise-based API, so you have support for async/await route handlers and middlewares out of the box!

Express probably has the most evolved middleware ecosystem of all node server frameworks, but koa's is quite comprehensive as well :)