{"id":13563109,"url":"https://github.com/adrg/color","last_synced_at":"2025-09-01T14:41:46.881Z","repository":{"id":22535446,"uuid":"25876181","full_name":"adrg/color","owner":"adrg","description":"Colorize output of shell commands","archived":false,"fork":false,"pushed_at":"2021-11-02T18:01:34.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-03T07:25:38.409Z","etag":null,"topics":["cli","color","golang","shell","terminal"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/adrg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-28T15:29:22.000Z","updated_at":"2023-06-19T08:40:34.000Z","dependencies_parsed_at":"2022-08-21T07:00:38.420Z","dependency_job_id":null,"html_url":"https://github.com/adrg/color","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adrg/color","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrg%2Fcolor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrg%2Fcolor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrg%2Fcolor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrg%2Fcolor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adrg","download_url":"https://codeload.github.com/adrg/color/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrg%2Fcolor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273142983,"owners_count":25053122,"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","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cli","color","golang","shell","terminal"],"created_at":"2024-08-01T13:01:15.258Z","updated_at":"2025-09-01T14:41:46.839Z","avatar_url":"https://github.com/adrg.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"color\n=====\n[![pkg.go.dev documentation](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go\u0026logoColor=white)](https://pkg.go.dev/github.com/adrg/color)\n[![License: MIT](https://img.shields.io/github/license/adrg/splash)](http://opensource.org/licenses/MIT)\n[![Go Report Card](https://goreportcard.com/badge/github.com/adrg/color)](https://goreportcard.com/report/github.com/adrg/color)\n\nColor is a small CLI application which provides the ability style text\nfrom the standard input.\n\n## Installation\n\nTo build use:\n```sh\ngit clone https://github.com/adrg/color.git\ncd color\nmake\n```\n\nTo install system wide use:\n```sh\nsudo make install\n```\n\nTo uninstall use:\n```sh\nsudo make uninstall\n```\n\n### Usage\n```sh\ninput | color [-h] [-v] STYLE...\n```\n\n### Input format\nParameters can be specified in the input text with '{index}' where index\nis a positive number less than the number of styles passed in to color.\nParameter indices can be repeated. To reset the current style use '{r}'.\nA reset is automatically applied before each parameter occurence in the\ninput text. The last '{r}' in the can be omitted as a reset is done at\nthe end of the input.\n\n## Style format\n```\nforeground:background+attributes\n```\n\n**Colors**\n```\nblack red green yellow blue magenta cyan white\n```\n\n**Attributes**\n```\nb - Bold\nd - Dim\ni - Italic\nu - Underline\nB - Blink\nf - Fast blink\nr - Reverse\nh - Hidden\nc - Crossed out\n```\n\n## Examples\n```sh\necho \"{0}green fg\" | color green\necho \"{0}blue bg{r}, default bg\" | color :blue\necho \"{0}yellow fg{r}, default fg, {0}yellow fg again\" | color yellow\necho \"{0}green fg, red bg, bold\" | color green:red+b\necho \"{0}underline{r}, {1}bold{r} and {2}reverse\" | color +u +b +r\necho \"{0}blue fg, red bg, bold, reverse\" | color blue:red+br\n````\n\n\u003cimg alt=\"screenshot\" src=\"https://raw.githubusercontent.com/adrg/adrg.github.io/master/assets/projects/color/screenshot.png\" width=\"100%\" /\u003e\n\n## Contributing\n\nContributions in the form of pull requests, issues or just general feedback,\nare always welcome.  \nSee [CONTRIBUTING.MD](CONTRIBUTING.md).\n\n## License\n\nCopyright (c) 2014 Adrian-George Bostan.\n\nThis project is licensed under the [MIT license](http://opensource.org/licenses/MIT).\nSee [LICENSE](LICENSE) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrg%2Fcolor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrg%2Fcolor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrg%2Fcolor/lists"}