A Ruby gem that extends the String class with ANSI escape sequences for easy console text colorization.
Colorize is a Ruby gem that extends the String class with methods to apply colors, background colors, and text effects to console output using ANSI escape sequences. It solves the problem of creating visually distinct and readable terminal text without manually writing complex escape codes, making it easier to highlight important information in logs, CLI applications, and terminal interfaces.
Ruby developers building command-line interfaces, debugging tools, or any application that outputs text to the terminal and needs enhanced visual differentiation.
Developers choose Colorize for its dead-simple API that feels like native Ruby, its flexibility in offering both String extension and a separate ColorizedString class, and its comprehensive feature set including chainable methods, color aliases, and global toggles—all without external dependencies beyond Ruby itself.
Ruby string class extension. It add some methods to set color, background color and text effect on console easier using ANSI escape sequences.
Extends Ruby's String class with methods like 'string'.blue, making colorization feel native and seamless for Ruby developers, as shown in the usage examples.
Provides ColorizedString class for isolated colorization without modifying core String, offering a clean option for projects wary of monkey-patching.
Supports method chaining, e.g., .blue.on_red.underline, allowing easy combination of colors, backgrounds, and effects in a readable way.
Enables adding custom color aliases via String.add_color_alias, useful for internationalization or personal preferences, as demonstrated with Polish examples.
Requires the Win32/Console/ANSI gem for Windows support, adding an extra installation step and potential compatibility issues in cross-platform setups.
Default String extension can conflict with other gems that modify String, risking stability in complex Ruby environments unless ColorizedString is used exclusively.
Focuses solely on ANSI color codes without support for advanced terminal controls like cursor positioning or full UI frameworks, limiting complex terminal applications.
Manage complex tmux sessions easily
A Ruby gem that beautifies the terminal's ls command, with color and font-awesome icons. :tada:
Pretty print your Ruby objects with style -- in full color and with proper indentation
Friendly English-like interface for your command line. Don't remember a command? Ask Betty.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.