#emoji #printing #unicode #print #shortcodes #convert-string

emoji-printer

Replace emoji shortcodes in string with emoji unicode (":sushi:" -> 🍣)

6 releases

0.4.3 Dec 28, 2021
0.4.2 Dec 28, 2021
0.3.1 Dec 28, 2021
0.2.1 Dec 27, 2021
0.1.0 Dec 27, 2021

#954 in Text processing

Download history 9/week @ 2024-07-29 2/week @ 2024-08-05 1/week @ 2024-08-26 7/week @ 2024-09-09 22/week @ 2024-09-23 3/week @ 2024-09-30 22/week @ 2024-10-07 38/week @ 2024-10-14 13/week @ 2024-10-21 13/week @ 2024-10-28 10/week @ 2024-11-04 19/week @ 2024-11-11

57 downloads per month

MIT/Apache

105KB
2K SLoC

Emoji Printer

Intro

Utility to convert strings with emoji shortcodes (:sushi:) to strings with the emoji unicode (🍣)

Install

cargo add emoji-printer

How to use

use emoji_printer::print_emojis;

fn main() {
    let greeting = print_emojis(":waving_hand: Hello, :globe_showing_Americas: World!");
    println!("{}", greeting); // 👋 Hello, 🌎 World!
}

What emojis are supported?

See the emoji list on unicode.org

Dependencies

~2.2–3MB
~54K SLoC