1.1.0 • Published 7 years ago

wherr v1.1.0

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
7 years ago

Wherr

Simple logging helper.

Usage

You could plug it to console.error like:

const wherr = require('wherr');
console.error('Something weird', wherr());

This will output:

Something weird file.js:2:34

Or, create your custom error logger. You'll need to pass abstraction level to wherr this way.

logerr = (...args) => console.error(...args, wherr(1)));

And use it like:

logerr('Something weird');

Will produce:

Something weird file.js:2:1

Combine this with other logging utility like chalk, or pino.

1.1.0

7 years ago

1.0.0

7 years ago