CallerId
Allows you to retrieve the filename or directory path of the file that has required your file/module.
Installation
$ npm install callerid
Features
- retrieve both the filename and the directory path
methods
dirname
retrieve the directory path instead of the filename
Usage
Initiate
var callerid = ;
Get last caller
var file = dir = callerid;
Custom Levels
//back two files; //directory path two files agocallerid;
Running tests
$ npm install
$ npm test
License
(The MIT License)