Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 415 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 415 Bytes

pkg-meta

A native extension for node.js that enables the lookup of the script path where a given function was defined.

Prior to Node.js version 9, this was possible using the Debug.findScript function; but that has since been removed.

Installation

npm install pkg-meta

Usage

const { findScript } = require('pkg-meta');

function find_me() {}

console.log(findScript(find_me));