emoji-printer

Crates.ioemoji-printer
lib.rsemoji-printer
version0.4.3
sourcesrc
created_at2021-12-27 07:15:21.302739
updated_at2021-12-28 01:17:06.800935
descriptionReplace emoji shortcodes in string with emoji unicode (":sushi:" -> 🍣)
homepage
repositoryhttps://github.com/zieka/emoji-printer
max_upload_size
id503599
size104,967
Kyle Scully (zieka)

documentation

README

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

Commit count: 16

cargo fmt