@revolttv/error-middleware

1.1.0 • Public • Published

error-middleware

Middleware to handle exceptions and return consistent error responses

Usage

import errors from '@revolttv/errors-middleware';

let app = new express();

// Should be at the end of the route definitions
app.use(errors({
    env: 'production'
}));

Readme

Keywords

none

Package Sidebar

Install

npm i @revolttv/error-middleware

Weekly Downloads

2

Version

1.1.0

License

UNLICENSED

Unpacked Size

13.7 kB

Total Files

14

Last publish

Collaborators

  • hspinks
  • andrewburgess
  • revolt