1.0.1-beta • Published 3 years ago
where-call v1.0.1-beta
Where Call
install
npm install where-call
functions
- whereIsCallFunction(): Info | null
// source.js
function foo() {
return whereIsCallFunction();
}
const location = foo();
// │ ↑
// └───────┘
// source.js:4:17
- whereIsHere(): Info | null
// source.js
function foo() {
const location = whereIsHere();
// │ ↑
// └───────┘
// source.js:2:19
}
foo();
object
- Info: location detail
- line: number
- column: number
- file: string
Related
- stack-utils cleans stack traces and parse trace info
1.0.1-beta
3 years ago