FLUTTER ECOSYSTEM

n4ze3m/remove-emoji

テキスト内の絵文字を正確に置換または削除するためのDartまたはFlutterパッケージ

remove-emoji のプロジェクト画像
Stars
9
Forks
5
最終プッシュ(UTC)
2023/08/21
プロジェクト状態
公開中
Muhammed Nazeem GitHub avatar
GITHUB User

Muhammed Nazeem ↗

404

@BuckthornDevInternal Server Error
言語Dart

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 2 件
  • pedantic開発用^1.11.0
  • test開発用^1.17.3

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる

Remove Emoji 😢

Dart package accurately replace/remove emojis in text. Remove-emoji heavily inspired by NodeJS package emoji-regex.

Usage

A simple usage example:

import 'package:remove_emoji/remove_emoji.dart';

void main() {
  var word = '🤣h😌e🙄l😪l😓o😳🤔👨‍🦰🤶🏿 🧝‍♂️🍝🥘🌯🍦🥂🥂🎂🍰🧁🍨🍧😁w🤷‍♂️o😎r🤪l🤦‍♂️d🐸🤑😆😖🎉🍾🤟🤩😢🐭😡😍📧😄😔😇🧐😈🙁🤓🙂🥱';
  var remove = RemoveEmoji();

  //  with trim
  print(remove.clean(word));

  // without trim
  print(remove.clean(word,'', false));

  // or use extension 🤓

  // with trim
  print(word.removEmoji);
 // without trim
 print(word.removEmojiNoTrim);
}

output

hello world
hello world

Contribution

Happy 😍 to recieve or provide contributions related to this package.

Features and bugs

Please file feature requests and bugs at the issue tracker.