https://github.com/junosuarez/fninfo
node module: get basic info about a function
https://github.com/junosuarez/fninfo
Last synced: 9 months ago
JSON representation
node module: get basic info about a function
- Host: GitHub
- URL: https://github.com/junosuarez/fninfo
- Owner: junosuarez
- License: mit
- Created: 2013-03-10T03:12:09.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-08-05T23:37:40.000Z (almost 13 years ago)
- Last Synced: 2025-02-15T16:46:17.441Z (over 1 year ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# fninfo
get basic info about a function
## installation
$ npm install fninfo
## usage
```js
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 . See LICENSE.md