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

option for forcing `longhand` #38

Open gurpreetatwal opened 7 years ago

gurpreetatwal commented 7 years ago

Would it be possible to add an option to always return the longhand version of the match? Enabling the json flag forces longhand as well, but has other consequences.

I'm trying to use this module to verify webhook events sent by Facebook and in order to calculate the correct shasum, I need the longform of the converted characters.

sankethkatta commented 5 years ago

bump