3 releases (breaking)
Uses old Rust 2015
0.3.0 | Dec 16, 2016 |
---|---|
0.2.0 | Dec 5, 2016 |
0.1.0 | Apr 28, 2016 |
#7 in #escape
15KB
370 lines
how-do-i-escape
For when you ask yourself "how do I escape that"?
Prints escape sequences for unicode graphemes
It seems like every other day I'm looking up what the escape sequence for a unicode grapheme is in various web languages. And I'm also trying to learn Rust. So I wrote a tool in Rust.
Install & Use
$ cargo install how-do-i-escape
$ how-do-i-escape §
css = "\00A7"
html = §
js = "\u00A7"
What I'm thinking for 1.0
- Check code coverage is working properly
- Prefer HTML entities if one exists
- Improve output readability (maybe with colour)
- Try and reduce the time it takes to run
cargo install
- Test against stable, beta and nightly Rust
- Read spec to figure out how graphemes > FFFF are supposed to work
- Use HTML entities that are made of two code points
Dependencies
~4.5MB
~97K SLoC