Skip to content

drazisil/whocalled

Repository files navigation

whocalled

CircleCI Greenkeeper badge

Get the calling file and line number for logging in NodeJS

Installation

npm install whocalled

OR

yarn add whocalled

Usage

You can pretty much use this anywhere. It was designed with console logging in mind though.

const whoCalled = require('./index');

console.log(whoCalled(), 'Testing');

Contributing

Feel free to submit issues and/or PRs! In lieu of a formal style guide, please follow existing styles.

Licence

MIT

About

Get the calling file and line number for logging in NodeJS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages