Skip to content

kornelski/gh-emoji

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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%