0.2.2 • Published 9 years ago

express-promise-wrap v0.2.2

Weekly downloads
353
License
MIT
Repository
github
Last release
9 years ago

NPM NPM

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.

License

Analytics