jsesc

Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.

3.1.0Latest, 11 Dec 2024
1.1BDownloads, last month
0Advisories on the latest
0Advisories, all versions
MITLicence
802Stars
2.1/10OpenSSF Scorecard

Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.