print_remover 1.1.1
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.
Changelog #
1.1.0 - 2026-03-27 #
Added #
--dry-run(-d) flag to preview removals without modifying files.--verbose(-v) flag to display each print statement as it is removed.debugPrint()removal support alongsideprint().- Summary report showing total print statements removed and files scanned.
- Comment-aware detection: print statements inside comments are now preserved.
- Error handling for missing directories and file read/write failures.
- Programmatic API:
PrintRemovernow acceptspath,dryRun, andverboseparameters.
Fixed #
--path(-p) option was parsed but never actually used; now correctly passes the path toPrintRemover.- Regex pattern now handles nested parentheses (e.g.,
print(someFunc())). - Help text now shows the correct usage command.
Improved #
- Rewrote README with comprehensive examples, options table, and programmatic usage guide.
- Added proper dartdoc comments to the library and core class.
1.0.2 - 2025-01-12 #
Added #
- Added clear and concise instructions on how to use the package in the README.
- Added the
--helpor-hflag to display help information and usage details. - Simplified the command by allowing the package to be run without specifying
:main(now works withdart pub run print_remover).
Fixed #
- Resolved a bug that caused some
print()statements to be skipped during removal.
Meta #
- Updated the README with author and contact information (LinkedIn, Facebook, Website, Fiverr).
- Distributed under the MIT License.