Open tthn0 opened 3 years ago
These are both good ideas!
Currently python-minifier prefers to use newlines where possible instead of semicolons for readability, but I can see how a one-liner would be more useful.
how about adding semicolons for the obfuscation, makes it harder for reverse engineering. this reduces the space further in indented blocks because semicolons reduce the requirement to indent in certain locations.
@xcodz-dot Semicolons are already used in indented blocks. Newlines would only be used at the module level, where it makes no difference to the output size.
This:
By default turns into:
But it could easily be more compact to save a few more bytes like so:
Also, please make an option to turn into a one-liner for all possible statements! (Separated by semicolons)
Edit to make my previous sentence clearer: although the output size wouldn't change, please add a "one-liner" option to separate statements by semicolons instead of newlines where possible