1.0.3 • Published 3 years ago

who-called-me v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

who-called-me

Information from the call stack of statement

Installing

Using npm:

$ npm install who-called-me

Example

const whoCalledMe = require('who-called-me');
// or
import whoCalledMe from 'who-called-me';

whoCalledMe(2) // => 'Line: 15. at file///C/dev/test2/2.js'
// whoCalledMe(2: Is a depth level, can be 3 or other )
whoCalledMe(2, 'report') // => 'Line: 15. at file///C/dev/test2/2.js', more data in console/terminal
// You can use 'report' for watching call stack and choose depth level you need
1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago