rollup-plugin-ascii

0.0.3 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    158
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    158
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i rollup-plugin-ascii

Weekly Downloads

158

Version

0.0.3

License

BSD-3-Clause

Last publish

Collaborators

  • mbostock