Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Extracts functions from JavaScript code
CoffeeScript
Branch: master

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.