Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compact option #203

Open
sanex3339 opened this issue Jan 4, 2020 · 4 comments
Open

Add compact option #203

sanex3339 opened this issue Jan 4, 2020 · 4 comments

Comments

@sanex3339
Copy link

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

@davidbonnet
Copy link
Owner

Agreed, this feature is the next milestone on the roadmap.

@davidbonnet davidbonnet added this to the Compact formatting milestone Jan 12, 2020
@sanex3339
Copy link
Author

Amazing

@sanex3339
Copy link
Author

sanex3339 commented Apr 10, 2021

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)

@davidbonnet
Copy link
Owner

Feel free to give it a go. It's basically a copy of the GENERATOR with all spaces removed and no indentation support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants