location()
npm: npm install @hapi/pinpoint
npm install @hapi/pinpoint
yarn: yarn add @hapi/pinpoint
yarn add @hapi/pinpoint
location(depth)
Returns the filename and line number of the caller in the call stack where:
depth
1
Returns an object with the filename and line number.
filename
line