3 releases

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

#1474 in Text processing

Download history 1/week @ 2024-02-02 5/week @ 2024-02-09 35/week @ 2024-02-16 26/week @ 2024-02-23 22/week @ 2024-03-01 39/week @ 2024-03-08 20/week @ 2024-03-15 33/week @ 2024-03-22 45/week @ 2024-03-29

140 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
~54K SLoC