Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-error-renderer

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-error-renderer

Middleware for rendering express errors with error details, source-mapped stack traces.

  • 1.8.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 05 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc