node package manager

innersource

innersource

Returns inner source (the body) of a function as a string.

Install

$ npm install innersource

Usage

var innersource = require('innersource');
 
function test1() {
  console.log('hello');
}
 
console.log(innersource(test1)); //  console.log('hello'); 

Test

$ npm test