js-regenerate

Tool to regenerate JavaScript code using esprima and escodegen

Usage no npm install needed!

<script type="module">
  import jsRegenerate from 'https://cdn.skypack.dev/js-regenerate';
</script>

README

js-regenerate

Usage:

$ js-regenerate <file> # Print code to output
$ js-regenerate <file> > regenerated.js # Write output to file

Installation:

$ npm i js-regenerate -g

Known issues

  • js-regenerate <file> > <file> produces blank file

License

MIT