A error handler middleware for express
npm install @reges-hq/express-error-handler
Or with yarn
yarn add @reges-hq/express-error-handler
In your applications main entry point add:
const expressErrorHandler = require('@reges-hq/express-error-handler');
const shouldPrintStack = true
app.use(expressErrorHandler(shouldPrintStack))