{"id":29618551,"url":"https://github.com/0x2c6/corol","last_synced_at":"2025-07-21T02:02:06.272Z","repository":{"id":62556279,"uuid":"91273469","full_name":"0x2C6/corol","owner":"0x2C6","description":"Simple ruby gem to make texts beautiful.","archived":false,"fork":false,"pushed_at":"2017-10-01T21:20:31.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-15T09:26:25.342Z","etag":null,"topics":["color","corol","gem","ruby"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/corol","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0x2C6.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-14T21:48:00.000Z","updated_at":"2018-04-23T11:56:27.000Z","dependencies_parsed_at":"2022-11-03T06:00:22.379Z","dependency_job_id":null,"html_url":"https://github.com/0x2C6/corol","commit_stats":null,"previous_names":["farhad-eyvazli/corol"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0x2C6/corol","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x2C6%2Fcorol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x2C6%2Fcorol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x2C6%2Fcorol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x2C6%2Fcorol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0x2C6","download_url":"https://codeload.github.com/0x2C6/corol/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x2C6%2Fcorol/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266226983,"owners_count":23895728,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["color","corol","gem","ruby"],"created_at":"2025-07-21T02:02:04.583Z","updated_at":"2025-07-21T02:02:06.256Z","avatar_url":"https://github.com/0x2C6.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Corol [![Gem Version](https://badge.fury.io/rb/corol.svg)](https://badge.fury.io/rb/corol) [![Build Status](https://travis-ci.org/0x2C6/corol.svg?branch=master)](https://travis-ci.org/0x2C6/corol) [![Code Climate](https://codeclimate.com/github/Farhad-Eyvazli/corol/badges/gpa.svg)](https://codeclimate.com/github/Farhad-Eyvazli/corol) [![Dependency Status](https://gemnasium.com/badges/github.com/Farhad-Eyvazli/corol.svg)](https://gemnasium.com/github.com/Farhad-Eyvazli/corol)\n\nSimple ruby gem to make texts beautiful.\n\nUsage is very simple . Just call color's name as a method and let it to work. You can see methods below. New colors will be added.\n\n## Installation\n\n```\ngem install corol\n```\nYou should use 'sudo' to install gems .\n\n## How to use\n\n```ruby\nrequire 'corol'\n\nputs \"This text's output will be red\".red   #=\u003e Output will be red\nputs \"This text's output will be bold\".bold #=\u003e Output will be bold\n```\n\n\n* Tested on Gnome Terminal . Please note that some colors may not work on some colsoles.\n\n```ruby\n#### Text Colors Codes ####\nRED              =    \"\\e[31m\" #Variable and Color code for red\nWHITE            =    \"\\e[0m\"  #Variable and Color code for white and resetting color or format\nBLACK            =    \"\\e[30m\" #Variable and Color code for black\nGREEN            =    \"\\e[32m\" #Variable and Color code for green\nYELLOW           =    \"\\e[33m\" #Variable and Color code for yellow\nBLUE             =    \"\\e[34m\" #Variable and Color code for blue\nMAGENTA          =    \"\\e[35m\" #Variable and Color code for magenta\nCYAN             =    \"\\e[36m\" #Variable and Color code for cyan\nLIGHT_RED        =    \"\\e[91m\" #Variable and Color code for light red\nLIGHT_GREEN      =    \"\\e[92m\" #Variable and Color code for light green\nLIGHT_YELLOW     =    \"\\e[93m\" #Variable and Color code for light yellow\nLIGHT_BLUE       =    \"\\e[94m\" #Variable and Color code for light blue\nLIGHT_MAGENTA    =    \"\\e[95m\" #Variable and Color code for light magenta\nLIGHT_CYAN       =    \"\\e[96m\" #Variable and Color code for light cyan\n```\n\n```ruby\n#### BackGround Colors Codes ####\nBACK_RED         =    \"\\e[41m\"  #Variable and Color code for Background red\nBACK_GREEN       =    \"\\e[42m\"  #Variable and Color code for Background green\nBACK_YELLOW      =    \"\\e[43m\"  #Variable and Color code for Background yellow\nBACK_BLUE        =    \"\\e[44m\"  #Variable and Color code for Background blue\nBACK_MAGENTA     =    \"\\e[45m\"  #Variable and Color code for Background magenta\nBACK_CYAN        =    \"\\e[46m\"  #Variable and Color code for Background cyan\nBACK_LIG_RED     =    \"\\e[101m\" #Variable and Color code for Background light red\nBACK_LIG_GREEN   =    \"\\e[102m\" #Variable and Color code for Background light green\nBACK_LIG_YELLOW  =    \"\\e[103m\" #Variable and Color code for Background light yellow\nBACK_LIG_BLUE    =    \"\\e[104m\" #Variable and Color code for Background light blue\nBACK_LIG_MAGENTA =    \"\\e[105m\"  #Variable and Color code for Background light magenta\nBACK_LIG_CYAN    =    \"\\e[106m\" #Variable and Color code for Background light cyan\n```\n\n```ruby\n#### Formatting Codes ####\nBOLD             =    \"\\e[1m\" #Variable and code for bold\nDIM              =    \"\\e[2m\" #Variable and code for dim\nUND_LINE         =    \"\\e[4m\" #Variable and code for underline\nHIDDEN           =    \"\\e[8m\" #Variable and code for hidden text  . For passwords\n```\n\n### Methods for String Colors\n\n```ruby\n\"String\".red\n\"String\".white\n\"String\".black\n\"String\".green\n\"String\".yellow\n\"String\".blue\n\"String\".magenta\n\"String\".cyan\n\"String\".light_red\n\"String\".light_green\n\"String\".light_yellow\n\"String\".light_blue\n\"String\".light_magenta\n\"String\".light_cyan\n```\n\n### Methods for Background Colors\n\n```ruby\n\"String\".back_red\n\"String\".back_green\n\"String\".back_yellow\n\"String\".back_blue\n\"String\".back_magenta\n\"String\".back_cyan\n\"String\".back_light_red\n\"String\".back_light_green\n\"String\".back_light_yellow\n\"String\".back_light_blue\n\"String\".back_light_magenta\n\"String\".back_light_cyan\n```\n### Methods for String formats\n\n```ruby\n\"String\".bold\n\"String\".dim\n\"String\".und_line\n\"String\".hidden\n```\n\n\n### Run Rakefile for more useful examples\n```ruby\nrake test\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x2c6%2Fcorol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0x2c6%2Fcorol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x2c6%2Fcorol/lists"}