Sha256: 2bdfd6d4b5d7d9b364bc2590adfd17186069a8467432320376abacb3ebf8799c

Contents?: true

Size: 539 Bytes

Versions: 26

Compression:

Stored size: 539 Bytes

Contents

# caller-path [![Build Status](https://travis-ci.org/sindresorhus/caller-path.svg?branch=master)](https://travis-ci.org/sindresorhus/caller-path)

> Get the path of the caller function


## Install

```
$ npm install --save caller-path
```


## Usage

```js
// foo.js
const callerPath = require('caller-path');

module.exports = () => {
	console.log(callerPath());
	//=> '/Users/sindresorhus/dev/unicorn/bar.js'
}
```

```js
// bar.js
const foo = require('./foo');
foo();
```


## License

MIT © [Sindre Sorhus](https://sindresorhus.com)

Version data entries

26 entries across 25 versions & 8 rubygems

Version Path
ezii-os-5.2.1 node_modules/caller-path/readme.md
ezii-os-2.0.1 node_modules/caller-path/readme.md
ezii-os-1.1.0 node_modules/caller-path/readme.md
ezii-os-1.0.0 node_modules/caller-path/readme.md
ezii-os-0.0.0.1.0 node_modules/caller-path/readme.md
ezii-os-0.0.0.0.1 node_modules/caller-path/readme.md