Gazebo_simulation-Frontend/node_modules/caller-path
Riddhi Dave c586e2ed33 session update with django backend 2021-02-25 10:57:52 -05:00
..
index.js React files 2020-12-21 10:29:31 -05:00
license React files 2020-12-21 10:29:31 -05:00
package.json session update with django backend 2021-02-25 10:57:52 -05:00
readme.md React files 2020-12-21 10:29:31 -05:00

readme.md

caller-path Build Status

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