emojicon

Crates.ioemojicon
lib.rsemojicon
version0.4.0
sourcesrc
created_at2021-06-06 20:10:03.974483
updated_at2024-01-19 17:36:12.151345
descriptionFind Emoji by using Emoticons and GitHub's, Bengali emoji names.
homepage
repositoryhttps://github.com/mominul/emojicon
max_upload_size
id407009
size179,092
Muhammad Mominul Huque (mominul)

documentation

README

emojicon

Build Status crates.io docs.rs Rust

Find Emoji by using Emoticons and GitHub's, Bengali emoji names.

use emojicon::{Emojicon, BengaliEmoji};
fn main() {
    let emojicon = Emojicon::new();
    assert_eq!(emojicon.get_by_emoticon("B-)"), Some("😎"));
    assert_eq!(emojicon.get_by_name("cool").unwrap().collect::<Vec<_>>(), ["😎", "🆒"]);
    
    let emojis = BengaliEmoji::new();
    assert_eq!(emojis.get("āĶ•ā§āĶē").unwrap().collect::<Vec<_>>(), ["🆒", "😎"]);
}

Acknowledgment

Commit count: 11

cargo fmt