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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    83
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    83
  • 1.1.0
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i function-origin

Weekly Downloads

83

Version

1.1.1

License

MIT

Last publish

Collaborators

  • vkurchatkin