innersource

0.0.2 • Public • Published

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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i innersource

    Weekly Downloads

    4

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • johnkpaul