3 releases

0.0.3 Nov 10, 2021
0.0.2 Nov 10, 2021
0.0.1 Nov 9, 2021

#1437 in Text processing

Download history 6/week @ 2024-02-05 1/week @ 2024-02-12 41/week @ 2024-02-19 31/week @ 2024-02-26 33/week @ 2024-03-04 24/week @ 2024-03-11 28/week @ 2024-03-18 23/week @ 2024-03-25 77/week @ 2024-04-01 3/week @ 2024-04-08 14/week @ 2024-04-15 10/week @ 2024-04-22

107 downloads per month

MIT license

4KB

Demoji

A lightweight and snappy crate to remove emojis from a string.

Overview

This crate allows for removal of emojis given a string, and that's it!

This crate aims to be:

  • Fast
  • Lightweight
  • Easy To Use

Examples

// Remove all emojis from this string
let demojified_string = demoji("⚡hel✅🙂lo🙂")
assert_eq!(demojified_string, String::from("hello"));

What does the name mean?

Well, you could interpret it as demolish-emoji or de-emoji 😁.


lib.rs:

A lightweight and snappy crate to remove emojis from a string.

Overview

This crate allows for removal of emojis given a String, and that's it!

This crate aims to be:

  • Fast
  • Lightweight
  • Easy To Use

Examples

// Remove all emojis from this string
let demojified_string = demoji("⚡hel✅🙂lo🙂");
assert_eq!(demojified_string, String::from("hello"));

Dependencies

~2.2–3MB
~53K SLoC