{"id":17679307,"url":"https://github.com/bbkane/gocolor","last_synced_at":"2025-08-08T20:17:49.176Z","repository":{"id":44582084,"uuid":"455794555","full_name":"bbkane/gocolor","owner":"bbkane","description":"Tiny cross-platform terminal color library","archived":false,"fork":false,"pushed_at":"2025-07-17T14:25:59.000Z","size":220,"stargazers_count":8,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-06T08:58:20.226Z","etag":null,"topics":["color","go","golang","terminal"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/bbkane/gocolor","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bbkane.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2022-02-05T06:29:43.000Z","updated_at":"2025-07-17T14:26:03.000Z","dependencies_parsed_at":"2023-11-15T07:27:32.843Z","dependency_job_id":"942928de-40dc-4460-a77a-990cf6701baa","html_url":"https://github.com/bbkane/gocolor","commit_stats":{"total_commits":18,"total_committers":4,"mean_commits":4.5,"dds":0.5,"last_synced_commit":"ef2b7712b2f19617d2d723a13bb1c73d02e26e6a"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/bbkane/gocolor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbkane%2Fgocolor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbkane%2Fgocolor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbkane%2Fgocolor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbkane%2Fgocolor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbkane","download_url":"https://codeload.github.com/bbkane/gocolor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbkane%2Fgocolor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269482592,"owners_count":24424403,"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-08-08T02:00:09.200Z","response_time":72,"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":["color","go","golang","terminal"],"created_at":"2024-10-24T08:22:01.985Z","updated_at":"2025-08-08T20:17:49.163Z","avatar_url":"https://github.com/bbkane.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gocolor\n\n![TestWithReflection.png](TestWithReflection.png)\n\nA tiny cross-platform terminal color library that supports enabling and disabling colors.\n\nUses colors from https://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences?redirectedfrom=MSDN#text-formatting\n\nTested on macOS and (occasionally) on Ubuntu 20 and Windows 10.\n\n## Project Status (2025-06-14)\n\nBasically complete! `gocolor` works for my simple use cases. I'm watching issues; please open one for any questions and especially BEFORE submitting a Pull request.\n\n## Usage\n\n```go\ncolor, err := gocolor.Prepare(true)\nif err != nil {\n  panic(err)\n}\n\nfmt.Println(\n  color.Add(color.FgRed, \"FgRed\"),\n  color.Add(color.FgCyanBright+color.Negative, \"FgCyanBright+Negative\"),\n)\n```\n\nSee [tests](./gocolor_test.go) for inspiration.\n\nI use [mattn/go-isatty](https://github.com/mattn/go-isatty) to test my programs before enabling this.\n\nSee [Go Project Notes](https://www.bbkane.com/blog/go-project-notes/) for notes on development tooling.\n\n## Inspirations\n\n- https://github.com/TwiN/go-color (API inspiration)\n- https://github.com/bbkane/go-color (my - now deprecated - fork of TwiN/go-color)\n- https://github.com/fatih/color (color naming)\n- https://github.com/jedib0t/go-pretty (Windows code)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbkane%2Fgocolor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbkane%2Fgocolor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbkane%2Fgocolor/lists"}