print_remover 1.1.1 copy "print_remover: ^1.1.1" to clipboard
print_remover: ^1.1.1 copied to clipboard

Automatically removes all print() and debugPrint() statements from Dart files. Supports dry-run, custom paths, and verbose output.

example/print_remover_example.dart

import 'package:print_remover/print_remover.dart';

void main() async {
  // Basic usage: remove all print statements from 'lib' directory
  final remover = PrintRemover();
  await remover.start();

  // Preview changes without modifying files
  final dryRunRemover = PrintRemover(
    path: 'lib',
    dryRun: true,
    verbose: true,
  );
  final count = await dryRunRemover.start();
  print('Found $count print statement(s)');

  // Scan a custom directory
  final customRemover = PrintRemover(path: 'src');
  await customRemover.start();
}
13
likes
160
points
640
downloads

Documentation

API reference

Publisher

verified publisherzakriakhan.com

Weekly Downloads

Automatically removes all print() and debugPrint() statements from Dart files. Supports dry-run, custom paths, and verbose output.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

args

More

Packages that depend on print_remover