printerr

0.0.4 • Public • Published

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!!!');

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    2
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i printerr

Weekly Downloads

2

Version

0.0.4

License

MIT

Unpacked Size

15 kB

Total Files

5

Last publish

Collaborators

  • yaroslavgaponov