how-do-i-escape

Crates.iohow-do-i-escape
lib.rshow-do-i-escape
version0.3.0
sourcesrc
created_at2016-04-28 10:54:52.436207
updated_at2016-12-16 12:45:18.125757
descriptionPrints escape sequences for unicode graphemes
homepagehttps://github.com/p-jackson/how-do-i-escape
repositoryhttps://github.com/p-jackson/how-do-i-escape
max_upload_size
id4886
size16,605
Philip Jackson (p-jackson)

documentation

README

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
Commit count: 80

cargo fmt