Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

rollup-plugin-ascii

mbostock620BSD-3-Clause0.0.3

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

rollup-plugin, ascii

readme

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.