SkillAgentSearch skills...

Justascii

Rewrite JavaScript to escape any non-ASCII characters in string literals.

Install / Use

/learn @mbostock/Justascii
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Want ASCII? Just ASCII!

Rewrite JavaScript to escape any non-ASCII characters in string literals. For example, the following input:

console.log("Ich ♥ Bücher");

Becomes the following output:

console.log("Ich \u2665 B\xFCcher");

Only string literals are escaped! If you want to escape Unicode symbols, too, you’ll need something like UglifyJS2.

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated4y ago
Forks3

Languages

JavaScript

Security Score

70/100

Audited on Jul 22, 2021

No findings