0.0.4 • Published 5 years ago

printerr v0.0.4

Weekly downloads
92
License
MIT
Repository
github
Last release
5 years ago

PrintErr

print information about the place where the error occurred

printerr

Example #1

Print information for all uncaughtException

require('./index')();

throw new Error('error!!!');

Example #2

Print information for custom exception

const printErr = require('printerr')();

try {
    throw new Error('error!!!');
} catch (e) {
    printErr(e);
}

Example with custom print function

require('./index')(console.debug);

throw new Error('error!!!');
0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago