Term::Colorizer

Gem Version Build Status

Print colorized strings on terminal (Useful for printing fancy logs)

Usage

Install gem by using following command:

gem install term-colorizer

or add it to your Gemfile as:

gem 'term-colorizer', require: 'term-colorizer'

and use it as:

"Duck can quack".green
# => "\e[32mDuck can quack\e[0m"

puts "Wow, that's really " + "hot!".bright_red
# guess what it will do?

To know avaialable color methods:

"Hello world!".color_methods
# => [:black, :red, :green, :yellow, :blue, :magenta, :cyan, :white, :bright_black, :bright_red, :bright_green, :bright_yellow, :bright_blue, :bright_magenta, :bright_cyan, :bright_white]

:)

Contributing

You're encouraged to contribute to this gem.

  • Fork this project.
  • Make changes, write tests.
  • Updated CHANGELOG.
  • Make a pull request, bonus points for topic branches.

Copyright (c) 2013, Vishal Telangre and Contributors. All Rights Reserved.

This project is licenced under the MIT License.