Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.53 KB

File metadata and controls

29 lines (22 loc) · 1.53 KB

how-do-i-escape Build Status Build status Dependency Status Coverage Status Crates.io

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