mirror of
https://github.com/actions/setup-python.git
synced 2025-06-22 19:57:58 +02:00
Initial pass
This commit is contained in:
34
node_modules/caller-path/readme.md
generated
vendored
Normal file
34
node_modules/caller-path/readme.md
generated
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
# caller-path [](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)
|
Reference in New Issue
Block a user