rollup-plugin-ascii
Rewrite JavaScript to escape any non-ASCII characters in string literals.
Last updated 4 years ago by mbostock .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install rollup-plugin-ascii 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.0.3                                ...           latest (4 years ago)

3 Versions

  • 0.0.3                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 3
This Week 4
This Month 4
Last Day 0
Last Week 0
Last Month 19
Dependencies (5)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |