Naturally Produced Modules
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

js-function-string

1.0.0 • Public • Published

js-function-string

extract a function body with the proper indentation

install

npm install js-function-string

use

var STR = require('js-function-string');
console.log(STR(function() {
        calling(a(func(a, b, c)));
          var a = 1;
        var b = 2;
        var c = 3;
}))

/* outputs:
calling(a(func(a, b, c)));
  var a = 1;
var b = 2;
var c = 3;
*/

license

MIT

install

npm i js-function-string

Downloadsweekly downloads

15

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability