0.0.2 • Published 9 years ago

fnbody v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

fnbody

Stringifies the contents of a function body.

NPM

Install

npm install fnbody
bower install fnbody

Usage

var fnbody = require('fnbody');

function foo() {
  var foo = 'bar';
  return function(qux) {
    return foo + qux;
  };
}

console.log(fnbody(foo)); // "  var foo = \'bar\';\n  return function(qux) {\n    return foo + qux;\n  };");

Test

npm test

License

MIT