pretty_print 1.0.0
pretty_print: ^1.0.0 copied to clipboard
A beautiful and customizable Dart library for printing colored and styled text to the terminal using ANSI escape codes. Perfect for CLI applications and debugging.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.0 - 2025-09-27 #
Added #
- π¨ Complete color support: 8 beautiful colors for text and background (black, red, green, yellow, blue, magenta, cyan, white)
- π Rich text styling: Bold, italic, underline, and strikethrough text formatting
- β¨ Special effects: Blinking animations (slow/fast), semi-transparency, and hidden text
- π Easy-to-use API: Simple
PrettyPrint.pprint()
method with intuitive parameters - π¦ Zero dependencies: Lightweight package with no external dependencies
- π― Type safety: Full Dart type safety with comprehensive enums
- π Cross-platform: Works on Windows, macOS, and Linux terminals
- π Comprehensive documentation: Detailed API documentation with examples
- π¨ Beautiful examples: Complete example file showcasing all features
- π§ͺ Production ready: Thoroughly tested and documented
Features #
- PrettyPrint class: Main class for printing styled text
- PrintColor enum: 8 colors plus none option for text and background colors
- TextWeight enum: Normal and bold text weight options
- TextItalic enum: Italic text styling
- TextUnderLine enum: Underline text decoration
- TextDone enum: Strikethrough text decoration
- AlphaAndAnim enum: Opacity and animation effects (semi-opacity, hide, slow/fast blinking)
- ANSI escape codes: Full ANSI terminal formatting support
- Customizable styling: Mix and match any combination of colors and styles
Documentation #
- Complete README with usage examples and terminal compatibility information
- Comprehensive API documentation for all classes and methods
- Real-world use case examples (status messages, progress indicators, debug info)
- Getting started guide and installation instructions
Examples #
- Basic color and styling examples
- Advanced multi-style combinations
- Status message templates (success, warning, error, info)
- Progress indicator patterns
- Debug and logging use cases
- CLI interface element styling
This initial release provides a complete, production-ready solution for terminal text formatting in Dart applications.