express-async-handler
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Simple middleware for handling exceptions inside of async express routes.

Instalation:

npm install --save express-async-handler
yarn add express-async-handler

Usage:

const asyncHandler = require('express-async-handler')

express.get('/', asyncHandler(async (req, res, next) => {
	bar = await foo.findAll();
	res.send(bar)
}))

Package Sidebar

Install

npm i express-async-handler@0.0.1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • abazhenov