Node.js callsite loader
Get information where your function was called
import { Callsite } from '@evojs/callsite';
const yourFn = () => {
const depth = 1, count = 1;
const callsite = Callsite.get(depth, count)[0];
console.log(`Callsite was called here: ${callsite.fileName}:${callsite.line}:${callsite.column}`);
};
yourFn();Licensed under MIT license