mathiasbynens / jsesc

Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
https://mths.be/jsesc
MIT License
716 stars 53 forks source link

an option should exist to keep long \uuYY unicode insted of \xYY #42

Closed blackholegalaxy closed 6 years ago

blackholegalaxy commented 6 years ago

I wonder if there is a way no to shorten the unicode codes with \xYY format and keep \u00YY format instead. \xYY format is not supported by some tools in some languages.

mathiasbynens commented 6 years ago

Use the json option.