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

Support buffers #28

Closed mathiasbynens closed 8 years ago

mathiasbynens commented 8 years ago

Use case: https://github.com/mathiasbynens/node-unicode-data/blob/ed81c895611415950a87af30732dc02a2120373a/scripts/utils.js#L10-L17

mathiasbynens commented 8 years ago

9743d447baae6f6414d30bfbe9ce955d15c5bc0a