@abcnews/err

Light weight error reporting module which wraps ABC News built in logging.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
01Dec 19, 2018Sep 21, 2017Minified + gzip package size for @abcnews/err in KB

Readme

err

A simple wrapper for logging errors on the ABC News site.

const errorLogger = require('@abcnews/err')('your project tag');

try {
    // some code which throws
} catch(e) {
    errorLogger(e);
}

// Or

Promise.reject('Meltdown').catch(errorLogger);

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.