rollup-plugin-ascii
    Overview
    Documentation
    Tutorials
    Insights
    Code
    Dependencies
    Contributors
    Jobs

rollup-plugin-ascii

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

0.0.3  •  Updated 4 years ago  •  by Mike Bostock  •  BSD 3-Clause "New" or "Revised" License

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.

Popularity

Weekly Downloads
74
Stars
7

Maintenance

Development

Last ver 4 years ago
Created 4 years ago
Last commit 4 years ago
8 minutes between commits

Technology

Node version: 6.2.1
0 unpacked

Compliance

BSD 3-Clause "New" or "Revised" License
OSI Approved
0 vulnerabilities

Contributors

1 contributors
Mike Bostock
Maintainer, 7 commits
Works at observablehq
Rich-Harris
1 PRs
letmaik
1 PRs

Tags

rollup-plugin
ascii
Openbase helps developers choose among and use millions of open-source packages, so they can build amazing products faster.
FacebookTwitterLinkedIn
© 2020 Devstore, Inc.