Skip to content
Extracts functions from JavaScript code
CoffeeScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src
test
.gitignore
.npmignore
.travis.yml
Cakefile
README.md
package.json

README.md

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

Something went wrong with that request. Please try again.