Rewrite JavaScript to escape any non-ASCII characters in string literals.
JavaScript
Latest commit ed5ae71 Jun 9, 2016 @mbostock 0.0.3
Permalink
Failed to load latest commit information.
.gitignore Initial commit. Jun 9, 2016
LICENSE Initial commit. Jun 9, 2016
README.md Initial commit. Jun 9, 2016
index.js Support sourcemaps by default. Jun 9, 2016
package.json 0.0.3 Jun 9, 2016

README.md

rollup-plugin-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.