Skip to content

matthisk/debug-error-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express/Koa error handling middleware

Build Status

Apply this middleware to display context information in the response to a failed request.

Example Page

Currently we support these two HTTP frameworks:

  • Express
  • Koa

Setup

Express

var stack = require('stack-middleware').express;

var app = express();

app.use(stack());

Koa

var stack = require('stack-middleware').koa;

var app = new Koa();

app.use(stack());

Configuration

The following configuration options are available:

{
  disabledForXHR: true // Disable the middleware for XHR requests
}

About

🤖 Node JS Middelware capturing & rendering improved stack traces

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published