Crates.io | emoji-printer |
lib.rs | emoji-printer |
version | 0.4.3 |
source | src |
created_at | 2021-12-27 07:15:21.302739 |
updated_at | 2021-12-28 01:17:06.800935 |
description | Replace emoji shortcodes in string with emoji unicode (":sushi:" -> 🍣) |
homepage | |
repository | https://github.com/zieka/emoji-printer |
max_upload_size | |
id | 503599 |
size | 104,967 |
Utility to convert strings with emoji shortcodes (:sushi:
) to strings with the
emoji unicode (🍣)
cargo add emoji-printer
use emoji_printer::print_emojis;
fn main() {
let greeting = print_emojis(":waving_hand: Hello, :globe_showing_Americas: World!");
println!("{}", greeting); // 👋 Hello, 🌎 World!
}