1.1.0 • Published 6 years ago

@revolttv/error-middleware v1.1.0

Weekly downloads
2
License
UNLICENSED
Repository
github
Last release
6 years ago

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'
}));