1.8.5 • Published 6 years ago

express-error-renderer v1.8.5

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

Express.js error renderer middleware

Travis Coverage Downloads Version License

Middleware for pretty rendering of your errors complete with source-mapped stack traces.

  • Can be configured for development or production (no error details showed in production).
  • Includes simple example application with tests.
  • Shows error details with both compiled and source mapped stack traces.
  • Returns configurable JSON error payloads for XHR requests.
  • Uses PrismJS to pretty-render the stack traces
  • Written in TypeScript.
  • Includes 100% test coverage.

Installation

This package is distributed via npm

npm install express-error-renderer

Commands

  • yarn build to build the production version.
  • yarn test to run tests.
  • yarn lint to lint the codebase.
  • yarn start to start the example application.
  • yarn coverage to gather code coverage.
  • yarn prettier to run prettier.

Example

See src/example directory for a full working example code and run npm start to try it out for yourself.

Error example

1.8.5

6 years ago

1.8.4

6 years ago

1.8.3

6 years ago

1.8.2

6 years ago

1.8.1

6 years ago

1.8.0

6 years ago

1.7.5

6 years ago

1.7.4

6 years ago

1.7.3

6 years ago

1.7.1

6 years ago

1.7.0

7 years ago

1.6.0

7 years ago