express-await

0.0.4 • Public • Published

express-await

A wrap for express to use es2016 async function with error handling.

Example:

import express from 'express-await'
let app = express()
app.getAsync(async (req, res) => {
  await ...
})
app.use(err => {
  // error handling
})

Package Sidebar

Install

npm i express-await

Weekly Downloads

1

Version

0.0.4

License

MIT

Last publish

Collaborators

  • magica