innersource

Returns inner source of a function as a string.

innersource

module to get the source of a function as a string

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