Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @hapi/pinpoint with all npm packages installed. Try it out:

var pinpoint = require("@hapi/pinpoint")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@hapi/pinpoint v2.0.0

Return the filename and line number of the calling function

@hapi/pinpoint

Return the filename and line number of the calling function.

pinpoint is part of the hapi ecosystem and was designed to work seamlessly with the hapi web framework and its other components (but works great on its own or with other frameworks). If you are using a different web framework and find this module useful, check out hapi – they work even better together.

Visit the hapi.dev Developer Portal for tutorials, documentation, and support

Useful resources

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free