• Published 12 years ago

fn-extractor v

Weekly downloads
3
License
-
Repository
github
Last release
12 years ago

fn-extractor

Extracts your functions from JavaScript code and returns them in an Object

Build Status

Install

npm install fn-extractor

Example

var extract = require('fn-extractor');
var functions = extract('(function () { function foo() { return 1; } })');

typeof functions.foo === 'function' // true
functions.foo() === 1 // true

License

MIT

0.0.1

12 years ago

0.0.0

12 years ago