Skip to content

kornelski/gh-emoji

This branch is 13 commits ahead of jiri/rust-emojicons:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Sep 19, 2023
35352ad Β· Sep 19, 2023

History

47 Commits
Sep 19, 2023
Jul 16, 2022
Jul 16, 2019
Dec 22, 2018
Dec 22, 2018
Aug 7, 2019
Sep 19, 2023
Dec 22, 2018
Sep 19, 2023

Repository files navigation

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 lib.rs website.

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!");

About

GitHub-flavored emoji database 😁

Resources

License

Stars

Watchers

Forks

Languages

  • Rust 100.0%