A Ruby library for formatting and displaying colored text, tables, and progress bars in terminal output.
Formatador is a Ruby library that formats and styles text output for terminal applications. It provides methods to add colors, display structured tables, and show progress bars, making command-line interfaces more visually appealing and informative. The library solves the problem of manually managing ANSI escape codes and complex formatting logic in CLI tools.
Ruby developers building command-line applications, scripts, or tools that require formatted terminal output, such as CLI utilities, deployment scripts, or data visualization in the console.
Developers choose Formatador for its simple tag-based syntax, which eliminates the need to write low-level ANSI escape sequences. It offers built-in utilities for common tasks like tables and progress bars, reducing boilerplate code and improving output consistency.
STDOUT text formatting
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Uses HTML-like tags for colors and styles, making it easy to apply formatting without memorizing ANSI escape codes, as shown in examples like [green]text[/].
Converts arrays of hashes into formatted ASCII tables with customizable headers, saving time on manual data presentation, as demonstrated with display_table.
Provides progress bars with color customization and elapsed time tracking, useful for long-running tasks, via ProgressBar.new and redisplay_progressbar.
Supports overwriting previous lines with redisplay, enabling dynamic status updates without cluttering output, ideal for progress or live feedback.
Only supports basic colors and simple formatting; lacks advanced ANSI features like underlines, blinking text, or true color support, which may restrict visual customization.
Relies on ANSI codes and TTY detection (STDOUT.tty?), causing potential failures in non-interactive environments or when output is redirected to files.
Tables are rendered with minimal options; missing features for custom borders, cell alignment control, or elegant handling of multi-line content, as seen in the simple ASCII output.