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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    4
  • 0.0.1
    0

Package Sidebar

Install

npm i innersource

Weekly Downloads

4

Version

0.0.2

License

MIT

Last publish

Collaborators

  • johnkpaul