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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    8
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    8

Package Sidebar

Install

npm i js-function-string

Weekly Downloads

8

Version

1.0.0

License

MIT

Last publish

Collaborators

  • tmpvar