#emoji #github #markdown #unicode #convert

gh-emoji

Convert :emoji: to Unicode using GitHub’s emoji names

3 stable releases

1.0.3 Mar 21, 2020
1.0.2 Jul 16, 2019
1.0.0 Dec 22, 2018

#249 in Text processing

Download history 169/week @ 2021-01-21 179/week @ 2021-01-28 147/week @ 2021-02-04 159/week @ 2021-02-11 236/week @ 2021-02-18 97/week @ 2021-02-25 199/week @ 2021-03-04 197/week @ 2021-03-11 121/week @ 2021-03-18 153/week @ 2021-03-25 137/week @ 2021-04-01 136/week @ 2021-04-08 147/week @ 2021-04-15 82/week @ 2021-04-22 106/week @ 2021-04-29 144/week @ 2021-05-06

627 downloads per month
Used in 2 crates

MIT license

75KB
2.5K SLoC

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

let emoji = gh_emoji::get("smile");
assert_eq!(emoji, Some("😄"));
let replacer = gh_emoji::Replacer::new();
let text = replacer.replace_all(":crocodile:, see you in a while!");

Dependencies

~1.5MB
~41K SLoC