https://github.com/drazisil/whocalled
Get the calling file and line number for logging in NodeJS
https://github.com/drazisil/whocalled
line-numbers logging nodejs
Last synced: about 2 months ago
JSON representation
Get the calling file and line number for logging in NodeJS
- Host: GitHub
- URL: https://github.com/drazisil/whocalled
- Owner: drazisil
- License: mit
- Created: 2018-01-23T14:24:36.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-08-27T16:02:45.000Z (10 months ago)
- Last Synced: 2025-09-01T08:38:10.623Z (10 months ago)
- Topics: line-numbers, logging, nodejs
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/whocalled
- Size: 880 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# whocalled
[](https://circleci.com/gh/drazisil/whocalled) [](https://greenkeeper.io/)
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