# fazibear/colorize

Ruby string class extension. It add some methods to set color, background color and text effect on console easier using ANSI escape sequences.

Repository: https://github.com/fazibear/colorize
Canonical: https://ross.abutalabs.com/products/colorize
Homepage: http://rdoc.info/projects/fazibear/colorize
Language: Ruby
License: GPL-2.0
License Family: copyleft
Topics: ruby, ansi-escape-sequences, gem
Last push: 2024-05-21T23:51:26+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 6127, "days_push": 834, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1283, forks 141 (observed 2026-08-28T04:04:14.119042+00:00)

## What it is
A Ruby gem that extends the String class (or provides a ColorizedString class) with methods for coloring console output using ANSI escape sequences. It supports text color, background color, text effects, method chaining, and color aliases.

## Use cases
- colorize terminal output in a ruby script
- print colored text to the console
- add background colors to console strings
- apply bold or underline effects to CLI output
- display color samples for terminal styling
- disable colorization when output is not a tty

## When to choose
- you are writing a Ruby CLI tool and want easy ANSI color methods on strings
- you want chainable color/effect methods like .blue.on_red.underline
- you need a lightweight, mature gem with no heavy dependencies

## When to avoid
- you need cross-platform true-color or complex terminal UI (use curses or tty libraries)
- your project avoids monkey-patching the String class (use the ColorizedString mode or another gem)
- you are not working in Ruby

## Facets
- artifact type: library
- maturity: stable
- function: developer-tools, cli
- domain: developer-tools
- platform: ruby, cli, cross-platform
- tags: ansi-escape-sequences, string-extension, terminal-colors, ruby-gem, command-line

## Member repositories
- fazibear/colorize (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:14.119042+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:56:48.197059+00:00, confidence not recorded.
  - readme: https://github.com/fazibear/colorize (fetched 2026-08-28T04:04:14.119042+00:00, sha 4ef1555371ac)
- Data as of 2026-08-30T08:39:29.467469+00:00.
