GitHub emoji for Rust

Full, up-to-date database of GitHub emoji which have Unicode equivalents. Pre-generated and hashed at compile time for fast lookup.

Useful when rendering GitLab/GitHub-flavored Markdown, although this crate does not parse any Markdown itself.

Used by crates.rs.

Example usage

rust let emoji = gh_emoji::get("smile"); assert_eq!(emoji, Some("😄"));

rust let replacer = gh_emoji::Replacer::new(); let text = replacer.replace_all(":crocodile:, see you in a while!");