pyminify icon indicating copy to clipboard operation
pyminify copied to clipboard

Add an encoding which minimises the uses of chr using map

Open FredericHamel opened this issue 3 years ago • 0 comments

I added an option to use map in the encoding which minimizes the usage of chr in the generated code.

You can pass the option --use-map and it will use map in the encoding. The resulting code has no spaces and quote. When using the map encoding, the string "utf-8" is encoded with chr to avoid using any kind of quotes.

FredericHamel avatar Dec 31 '22 16:12 FredericHamel