@revolttv/error-middleware
v1.1.0
Published
Middleware to handle exceptions and return error responses
Downloads
5
Readme
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'
}));