Crates.io | gh-emoji |
lib.rs | gh-emoji |
version | 1.0.8 |
source | src |
created_at | 2018-12-22 18:05:50.604078 |
updated_at | 2023-09-19 15:01:11.802603 |
description | Convert `:emoji:` to Unicode using GitHub's emoji names |
homepage | https://lib.rs/crates/gh-emoji |
repository | https://github.com/kornelski/gh-emoji |
max_upload_size | |
id | 103321 |
size | 78,495 |
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.
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!");