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 48 forks source link

Add `es6` option #13

Closed mathiasbynens closed 11 years ago

mathiasbynens commented 11 years ago

This option would use the \u{XXXXXX}-style escape sequences for astral symbols, rather than explicit surrogate pairs.