icon_cleaner 1.0.7 copy "icon_cleaner: ^1.0.7" to clipboard
icon_cleaner: ^1.0.7 copied to clipboard

A Dart CLI tool that automatically removes emoji and non-ASCII characters from Flutter project Dart files. Useful for cleaning up code copied from AI tools like ChatGPT.

example/icon_cleaner_example.dart

import 'package:icon_cleaner/icon_cleaner.dart';

void main() {
  // Example 1: Strip emojis from a string
  final cleaned = stripEmojis('Hello โŒ World โœ… Done ๐Ÿงน');
  print(cleaned); // Hello  World  Done 

  // Example 2: Clean a single file
  cleanFile('lib/main.dart');

  // Example 3: Clean entire lib directory
  cleanDirectory('lib/', verbose: true);
}
3
likes
160
points
212
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart CLI tool that automatically removes emoji and non-ASCII characters from Flutter project Dart files. Useful for cleaning up code copied from AI tools like ChatGPT.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

args, path

More

Packages that depend on icon_cleaner