JSPM

rollup-plugin-ascii

0.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 147
  • Score
    100M100P100Q74036F
  • License BSD-3-Clause

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

Package Exports

  • rollup-plugin-ascii

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rollup-plugin-ascii) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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.