Skip to content

reges-hq/express-error-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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))

Releases

No releases published

Packages

No packages published