pretty_print 1.0.0 copy "pretty_print: ^1.0.0" to clipboard
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.

1
likes
160
points
95
downloads

Publisher

verified publishermomaher.dev

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#terminal #console #color #ansi #print

Documentation

API reference

License

MIT (license)

More

Packages that depend on pretty_print