pkg-meta

1.1.0 • Public • Published

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));

Readme

Keywords

none

Package Sidebar

Install

npm i pkg-meta

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

182 kB

Total Files

14

Last publish

Collaborators

  • jameskeane