Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

function-origin

1.1.1 • Public • Published

function-origin

Get origin of a function in io.js and node.js

Usage

npm install function-origin

and then:

var FunctionOrigin = require('function-origin');
var origin = FunctionOrigin(someFn);

origin has the following properties:

  • file — source file name;
  • line — line number (0-based);
  • column — column number (0-based);
  • inferredName.

License

MIT

Keywords

none

install

npm i function-origin

Downloadsweekly downloads

612

version

1.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability