fninfo

get basic info about a function

npm install fninfo
1 downloads in the last day
5 downloads in the last week
33 downloads in the last month

fninfo

get basic info about a function

installation

$ npm install fninfo

usage

var fninfo = require('fninfo')

var a = function aFunc (foo, bar, baz) {/*

  */

  // comment
  baz = foo + bar
  return baz
}

fninfo(a)
// => {
//      params: ['foo', 'bar', 'baz']
//      name: 'aFunc',
//      loc: 8
//      sloc: 4
//    }

running the tests

From package root,

$ npm install $ npm test

license

MIT (c) 2013 jden jason@denizac.org. See LICENSE.md

npm loves you