Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Extracts functions from JavaScript code

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .npmignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 Cakefile
Octocat-spinner-32 README.md
Octocat-spinner-32 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.