Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Extracts functions from JavaScript code
branch: master
Failed to load latest commit information.
src Fix for anonymous functions
test Fix for anonymous functions
.gitignore initial import
.npmignore Adds an empty npmignore file
.travis.yml Adds travisyml
Cakefile initial import
README.md Adds travis badge
package.json 0.0.1

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.