pinpoint
Installation:

npm: npm install @hapi/pinpoint

yarn: yarn add @hapi/pinpoint

location(depth)

Returns the filename and line number of the caller in the call stack where:

  • depth - the distance from the location() function in the call stack. Defaults to 1 (caller).

Returns an object with the filename and line number.

Changelog

#3
Fix TS namespace
#2
Change default depth to be 0
clipboard