3 releases

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

#1696 in Text processing

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–3MB
~53K SLoC