jsesc
Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
- 801
- JavaScript
- MIT
- 24 mo ago
Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
An ESnext spec-compliant `RegExp.escape` shim/polyfill/replacement that works as far down as ES3.
HTML5 spec-compliant character encoder/decoder for Swift