anytv-node-error-handler

Express error handler middleware

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Feb 11, 2019Jan 20, 2015Minified + gzip package size for anytv-node-error-handler in KB

Readme

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!

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.