mirror of
https://git.mirrors.martin98.com/https://github.com/actions/setup-python
synced 2025-08-01 13:31:58 +08:00
caller-path 
Get the path of the caller function
Install
$ npm install --save caller-path
Usage
// foo.js
const callerPath = require('caller-path');
module.exports = () => {
console.log(callerPath());
//=> '/Users/sindresorhus/dev/unicorn/bar.js'
}
// bar.js
const foo = require('./foo');
foo();
License
MIT © Sindre Sorhus