astring
astring copied to clipboard
Add `compact` option
Motivation
Hi. I have plans to migrate my project from escodegen to astring.
Currently, my project heavily uses compact option from escodegen.
It would be amazing to add this option to astring.
When this option is enabled, all spaces (except spaces that cannot be removed without break the code) and line break characters will be removed
Agreed, this feature is the next milestone on the roadmap.
Amazing
Hi, Any news about this? I still want to migrate from escodegen to something other and compact option is one of the features that I need. (also x-verbatim-property analog to keep hexadecimal numbers and unicode escape sequences)
Feel free to give it a go. It's basically a copy of the GENERATOR with all spaces removed and no indentation support.