{"id":21275678,"url":"https://github.com/halimath/termcolor","last_synced_at":"2026-05-19T11:06:01.115Z","repository":{"id":58431317,"uuid":"531631196","full_name":"halimath/termcolor","owner":"halimath","description":"Colorized terminal output for golang","archived":false,"fork":false,"pushed_at":"2022-09-02T06:59:24.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T03:27:45.641Z","etag":null,"topics":["go","golang","terminal"],"latest_commit_sha":null,"homepage":"","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/halimath.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":"2022-09-01T18:00:44.000Z","updated_at":"2023-02-22T08:10:48.000Z","dependencies_parsed_at":"2022-09-11T04:23:24.091Z","dependency_job_id":null,"html_url":"https://github.com/halimath/termcolor","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halimath%2Ftermcolor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halimath%2Ftermcolor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halimath%2Ftermcolor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halimath%2Ftermcolor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/halimath","download_url":"https://codeload.github.com/halimath/termcolor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243732303,"owners_count":20338839,"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":["go","golang","terminal"],"created_at":"2024-11-21T09:36:08.680Z","updated_at":"2026-05-19T11:05:56.086Z","avatar_url":"https://github.com/halimath.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# termcolor\n\n![CI Status][ci-img-url] [![Go Report Card][go-report-card-img-url]][go-report-card-url]\n[![Package Doc][package-doc-img-url]][package-doc-url] [![Releases][release-img-url]][release-url]\n\n[ci-img-url]: https://github.com/halimath/termcolor/workflows/CI/badge.svg\n[go-report-card-img-url]: https://goreportcard.com/badge/github.com/halimath/termcolor\n[go-report-card-url]: https://goreportcard.com/report/github.com/halimath/termcolor\n[package-doc-img-url]: https://img.shields.io/badge/GoDoc-Reference-blue.svg\n[package-doc-url]: https://pkg.go.dev/github.com/halimath/termcolor\n[release-img-url]: https://img.shields.io/github/v/release/halimath/termcolor.svg\n[release-url]: https://github.com/halimath/termcolor/releases\n\n`termcolor` provides a simple and convenient API to output colorized terminal output with support for\nterminal detection and color supression.\n\n# Installation\n\n`termcolor` uses go modules and requires Go 1.14 or greater.\n\n```\n$ go get -u github.com/halimath/termcolor\n```\n\n# Usage\n\n`termcolor` provides a `Printer` type which accepts strings and optional style attributes and outputs \ncolorized output to an `io.Writer`. Factory functions for `STDOUT`, `STDERR` and `*os.File` are included which\nautomatically detect, if the underlying device is a character device.\n\n```go\np := termcolor.Stdout()\n\np.Printf(\"Welcome to %s output!\", p.Styled(\"colored\", termcolor.ForegroundCyan), termcolor.Bold)\n```\n\n# Changelog\n\n## 0.1.0\n* Initial release\n\n# License\n\n```\nCopyright 2022 Alexander Metzner.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalimath%2Ftermcolor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalimath%2Ftermcolor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalimath%2Ftermcolor/lists"}