webcaetano / jinx-error-catcher

Jinx module for handle error and submit to browser console

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Imgur

Jinx module for handle error and submit to browser console

Instalation

npm install jinx-error-catcher

Usage

require('jinx-error-catcher')(); // that's all
// all errors will display on browser console

// or with options

require('jinx-error-catcher')({
	deepDir:2, 
	maxStack:3 
});

Options

deepDir

show up to 3 parents folder Like (/home/www/main.as).

  • Default: 2

maxStack

show 3 stacks of root error

  • Default: 3

The MIT License

About

Jinx module for handle error and submit to browser console

License:MIT License


Languages

Language:JavaScript 60.6%Language:HTML 38.6%Language:CSS 0.8%