1.0.0 • Published 1 year ago
als-called-from v1.0.0
als-called-from
Description
als-called-from is a utility module designed to help developers trace the file paths from which functions were called.
Installation
Install als-called-from via npm:
npm install als-called-fromUsage
To retrieve the path of the file from which a function was called, simply import als-called-from and call it within your function:
const calledFrom = require('als-called-from');
const fileCalledFrom = calledFrom()This example demonstrates how to use als-called-from to identify the origin of function calls, which can be particularly handy in large projects or libraries.
1.0.0
1 year ago