zliq-stacktrace

0.0.2 • Public • Published

ZLIQ-Stacktrace

ZLIQ

Wrapper around Stacktrace.js to easyly add it to zliq. It will remove calls inside zliq from the stacktrace, making it easier to read.

Quickstart

To use ZLIQ-stacktrace in your project, first install it as an dependency:

$ npm install --save zliq-stacktrace

Then activate the stacktrace shrinking.

import {shrinkStacktrace} from 'zliq-stacktrace';
 
// shrinkStacktrace returns an errorhandler
window.onerror = (messageOrEvent, source, lineno, colno, error) => {
    return shrinkStacktrace(
        /node_modules\/zliq/, // blackList (optional)
        /.*/ // whitelist (optional)
    )(error);
}

Readme

Keywords

none

Package Sidebar

Install

npm i zliq-stacktrace

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • faboweb