Skip to content
Alecs edited this page Oct 11, 2023 · 2 revisions

Customization Module

Overview

The Customization module is a versatile Ruby library designed to enhance your text formatting capabilities in the terminal. This module empowers you to add style, color, and effects to text, making it an excellent tool for creating visually appealing command-line applications, generating stylish reports, or simply adding a touch of flair to your terminal outputs.

With Customization, you can:

  • Change text colors, making your output more vibrant and engaging.
  • Apply various text formats, such as bold, underline, and more, to highlight important information.
  • Create custom text borders for better text separation and presentation.
  • Add text effects like shadow, blinking, and opacity for unique visual effects.
  • Align, center, left-align, right-align, or justify text to suit your layout needs.
  • Calculate the visible length of text, excluding escape codes, for precise formatting.
  • Handle error conditions elegantly when providing invalid color, format, or border names.

Installation

You can easily install the Customization module as a Ruby gem using the following command:

gem install customization
Clone this wiki locally