node module: get basic info about a function
JavaScript
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
LICENSE.md
README.md
index.js
package.json

README.md

fninfo

get basic info about a function

installation

$ npm install fninfo

usage

var fninfo = require('fninfo')

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

  */

  // comment
  baz = foo + bar
  return baz
}

fninfo(a)
// => {
//      params: ['foo', 'bar', 'baz']
//      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