Skip to content

skyhitz/fn-extractor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Extracts functions from JavaScript code

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 58.8%
  • JavaScript 41.2%