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