An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# whocalled

[![CircleCI](https://circleci.com/gh/drazisil/whocalled.svg?style=shield)](https://circleci.com/gh/drazisil/whocalled) [![Greenkeeper badge](https://badges.greenkeeper.io/drazisil/whocalled.svg)](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