remove_emoji
0.0.10, released 3 years ago by n4ze3m.site
Dart package to remove or replace emojis in text
WASM-ready
What it does
It provides a class that can strip emojis from a string or replace them with a custom string. It also offers string extensions for convenience.
AI-written summary of version 0.0.10, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to sanitize user input or display text without emojis
- You want to replace emojis with a placeholder or custom string
Skip it when
- You need to detect or manipulate emojis beyond removal
- You need emoji support for UI rendering
Strengths
- Simple API, no dependencies
- Supports trimming and custom replacement
- Works across all platforms
Weaknesses
- Limited to removal/replacement only
- Does not handle complex emoji sequences beyond regex
- No support for emoji detection or categorization
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:remove_emoji/remove_emoji.dart';
void main(){
var word = 'hello 😢 world';
var remover = RemoveEmoji();
print(remover.clean(word)); // prints 'hello world'
}Alternatives
Packages that do the same job and could replace remove_emoji.
Works with
Packages commonly used together with remove_emoji: ones it builds on, ones built on it, and its own family.