express-promise-wrap
v0.2.2
Published
Express helper that allows the use of async functions as route handlers
Downloads
1,575
Maintainers
Readme
express-promise-wrap
express-promise-wrap
is a Express helper that allows the use of async functions as route handlers.
Installation
$ npm install express-promise-wrap
Usage
const { wrap } = require('express-promise-wrap');
// ...
app.get('/path', wrap(async (req, res) => {...}));
Credits
See the contributors.