{"id":16221528,"url":"https://github.com/bf-rb/concolor","last_synced_at":"2025-03-19T11:31:05.960Z","repository":{"id":32506935,"uuid":"36087779","full_name":"bf-rb/concolor","owner":"bf-rb","description":"With 'concolor' you can change the fore- and background colors and text decorations when rendering text on terminals supporting ANSI escape codes.","archived":false,"fork":false,"pushed_at":"2023-05-17T22:07:02.000Z","size":96,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-04-29T07:43:58.279Z","etag":null,"topics":["gem","ruby","ruby-gem","rubygem"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/concolor","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/bf-rb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-05-22T18:07:47.000Z","updated_at":"2023-05-16T21:25:38.000Z","dependencies_parsed_at":"2024-10-10T12:08:46.704Z","dependency_job_id":"839d4020-1f6d-47fb-9728-291586d22a16","html_url":"https://github.com/bf-rb/concolor","commit_stats":{"total_commits":15,"total_committers":2,"mean_commits":7.5,"dds":0.1333333333333333,"last_synced_commit":"58a6aaa742acff2651301d1c22ac3c556d6970d5"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bf-rb%2Fconcolor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bf-rb%2Fconcolor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bf-rb%2Fconcolor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bf-rb%2Fconcolor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bf-rb","download_url":"https://codeload.github.com/bf-rb/concolor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243986125,"owners_count":20379268,"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":["gem","ruby","ruby-gem","rubygem"],"created_at":"2024-10-10T12:08:33.310Z","updated_at":"2025-03-19T11:31:05.556Z","avatar_url":"https://github.com/bf-rb.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Concolor\n\n[![Gem](https://img.shields.io/gem/v/concolor?color=e9573f\u0026include_prereleases\u0026logo=rubygems\u0026style=for-the-badge)](https://rubygems.org/gems/concolor) [![Ruby CI](https://img.shields.io/github/actions/workflow/status/bf-rb/concolor/ci.yml?branch=main\u0026label=Ruby%20CI\u0026logo=githubactions\u0026style=for-the-badge)](https://github.com/bf-rb/concolor/actions) [![RubyDoc](https://img.shields.io/badge/RubyDoc-e2e2e2.svg?style=for-the-badge\u0026logo=readme)](https://bf-rb.github.io/concolor/v1.0.1/)\n\nWith `Concolor` you can change the fore- and background colors and text decorations when rendering text on terminals supporting ANSI escape codes. It adds the `concolor` method to `String` objects.\n\n![License](https://img.shields.io/github/license/bf-rb/concolor?style=for-the-badge) ![Stars](https://img.shields.io/github/stars/bf-rb/concolor?color=E3B341\u0026logo=github\u0026logoColor=E3B341\u0026style=for-the-badge) ![Forks](https://img.shields.io/github/forks/bf-rb/concolor?color=000\u0026logo=github\u0026logoColor=000\u0026style=for-the-badge) ![Watchers](https://img.shields.io/github/watchers/bf-rb/concolor?logo=github\u0026style=for-the-badge)\n\n## Used technologies, API, tools, etc\n\n[ruby-logo]: https://img.shields.io/badge/Ruby-cc342d.svg?style=flat\u0026logo=ruby\u0026logoColor=fff\n[git-logo]: https://img.shields.io/badge/Git-000.svg?style=flat\u0026logo=git\u0026logoColor=f54d27\n[github-actions-logo]: https://img.shields.io/badge/GitHub%20Actions-2671e5.svg?style=flat\u0026logo=githubactions\u0026logoColor=fff\n[rubocop-logo]: https://img.shields.io/badge/RuboCop-f5f5f5.svg?style=flat\u0026logo=rubocop\u0026logoColor=000\n[vs-code-logo]: https://img.shields.io/badge/VS%20Code-2c2c32.svg?style=flat\u0026logo=visualstudiocode\u0026logoColor=22a8f1\n[docker-logo]: https://img.shields.io/badge/Docker-003f8c.svg?style=flat\u0026logo=docker\u0026logoColor=fff\n[ruby-gems-logo]: https://img.shields.io/badge/Ruby%20Gems-e9573f.svg?style=flat\u0026logo=rubygems\u0026logoColor=fff\n\n[![ruby-logo]](https://www.ruby-lang.org/) [![git-logo]](https://git-scm.com/) [![github-actions-logo]](https://docs.github.com/en/actions) [![rubocop-logo]](https://rubocop.org/) [![vs-code-logo]](https://code.visualstudio.com/) [![docker-logo]](https://www.docker.com/) [![ruby-gems-logo]](https://rubygems.org/)\n\n## Development\n\nGem development information and current project status:\n\n[![Ruby CI](https://img.shields.io/github/actions/workflow/status/bf-rb/concolor/ci.yml?branch=dev\u0026label=Ruby%20CI\u0026logo=githubactions\u0026style=for-the-badge)](https://github.com/bf-rb/concolor/actions) [![Open issues](https://img.shields.io/github/issues-raw/bf-rb/concolor?color=red\u0026logo=github\u0026style=for-the-badge)](https://github.com/bf-rb/concolor/issues) ![Closed issues](https://img.shields.io/github/issues-closed-raw/bf-rb/concolor?logo=github\u0026style=for-the-badge)\n\n## Installation\n\nJust install the *concolor* gem\n\n```bash\ngem install concolor\n```\n\nor if you use **bundler** put this in your `Gemfile`\n\n```ruby\ngem 'concolor'\n```\n\n## Usage\n\n```ruby\nrequire 'concolor'\n\nputs 'Some text'.concolor(:bold, :red)\n# \"\\033[31;1mSome text\\033[0m\"\n```\n\n### Foreground color \u0026 Background color\n\n[#000000]: https://via.placeholder.com/15/000000/000000.png\n[#CD0000]: https://via.placeholder.com/15/CD0000/CD0000.png\n[#00CD00]: https://via.placeholder.com/15/00CD00/00CD00.png\n[#CDCD00]: https://via.placeholder.com/15/CDCD00/CDCD00.png\n[#1E90FF]: https://via.placeholder.com/15/1E90FF/1E90FF.png\n[#CD00CD]: https://via.placeholder.com/15/CD00CD/CD00CD.png\n[#00CDCD]: https://via.placeholder.com/15/00CDCD/00CDCD.png\n[#E5E5E5]: https://via.placeholder.com/15/E5E5E5/E5E5E5.png\n[#4C4C4C]: https://via.placeholder.com/15/4C4C4C/4C4C4C.png\n[#FF0000]: https://via.placeholder.com/15/FF0000/FF0000.png\n[#00FF00]: https://via.placeholder.com/15/00FF00/00FF00.png\n[#FFFF00]: https://via.placeholder.com/15/FFFF00/FFFF00.png\n[#4682B4]: https://via.placeholder.com/15/4682B4/4682B4.png\n[#FF00FF]: https://via.placeholder.com/15/FF00FF/FF00FF.png\n[#00FFFF]: https://via.placeholder.com/15/00FFFF/00FFFF.png\n[#FFFFFF]: https://via.placeholder.com/15/FFFFFF/FFFFFF.png\n\n| Foreground color | code |   color    | Background color   | code  |\n| :--------------- | :--: | :--------: | :----------------- | :---: |\n| `:default`       | *29* |            | `:bg_default`      | *49*  |\n| `:black`         | *30* | ![#000000] | `:bg_black`        | *40*  |\n| `:red`           | *31* | ![#CD0000] | `:bg_red`          | *41*  |\n| `:green`         | *32* | ![#00CD00] | `:bg_green`        | *42*  |\n| `:yellow`        | *33* | ![#CDCD00] | `:bg_yellow`       | *43*  |\n| `:blue`          | *34* | ![#1E90FF] | `:bg_blue`         | *44*  |\n| `:magenta`       | *35* | ![#CD00CD] | `:bg_magenta`      | *45*  |\n| `:cyan`          | *36* | ![#00CDCD] | `:bg_cyan`         | *46*  |\n| `:light_gray`    | *37* | ![#E5E5E5] | `:bg_light_gray`   | *47*  |\n| `:dark_gray`     | *90* | ![#4C4C4C] | `:bg_dark_gray`    | *100* |\n| `:light_red`     | *91* | ![#FF0000] | `:bg_light_red`    | *101* |\n| `:light_green`   | *92* | ![#00FF00] | `:bg_light_green`  | *102* |\n| `:light_yellow`  | *93* | ![#FFFF00] | `:bg_light_yellow` | *103* |\n| `:light_blue`    | *94* | ![#4682B4] | `:bg_light_blue`   | *104* |\n| `:light_magenta` | *95* | ![#FF00FF] | `:bg_light_magenta`| *105* |\n| `:light_cyan`    | *96* | ![#00FFFF] | `:bg_light_cyan`   | *106* |\n| `:white`         | *97* | ![#FFFFFF] | `:bg_white`        | *107* |\n\n### Mode (modifying the style of text)\n\n| Symbol        | Description | code |\n| :------------ | :---------- | :---: |\n| `:reset`      | Reset all SGR effects to their default | *0* |\n| `:bold`       | Bold or increased intensity | *1* |\n| `:faint`      | Faint or decreased intensity | *2* |\n| `:italic`     | Italic | *3* |\n| `:underline`  | Singly underlined | *4* |\n| `:blink`      | Blink (slow)  | *5* |\n| `:blink_fast` | Blink (fast)  | *6* |\n| `:reverse`    | Reverse (invert the foreground and background colors) | *7* |\n| `:hide`       | Hidden (useful for passwords) | *8* |\n| `:cross`      | Cross-out | *9* |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbf-rb%2Fconcolor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbf-rb%2Fconcolor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbf-rb%2Fconcolor/lists"}