innersource

Returns inner source of a function as a string.

npm install innersource
2 downloads in the last day
6 downloads in the last week
61 downloads in the last month

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
npm loves you