Skip to content

vkurchatkin/function-origin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published