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

anytv-node-error-handler

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anytv-node-error-handler

Express error handler middleware

  • 0.0.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

anytv-node-error-handler

Build Status Coverage Status Dependencies npm version

Our error handler middleware for expressjs. Especially made for our awesome expressjs boilerplate.

Install

npm install anytv-node-error-handler --save

Usage

Setting the middlware

On your index.js / server.js / app.js, register the middleware.

import error_handler from 'anytv-node-error-handler';
import express from 'express';

app = express();

app.use(error_handler(logger));

Contributing

Install the tools needed:

npm install mocha -g
npm install --dev

Running test

npm test
npm test-dev #to --watch

Code coverage

npm run coverage

Then open coverage/lcov-report/index.html.

License

MIT

Author

Freedom! Labs, any.TV Limited DBA Freedom!

Keywords

FAQs

Package last updated on 11 Feb 2019

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