File: README.md

package info (click to toggle)
node-d3 5.16.0%2B~cs5.28.10-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,772 kB
  • sloc: javascript: 592; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# rollup-plugin-ascii

Rewrite JavaScript to escape any non-ASCII characters in string literals. For example, the following input:

```js
console.log("Ich ♥ Bücher");
```

Becomes the following output:

```js
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.