{"id":3719240,"name":"github.com/cppforlife/color","ecosystem":"go","description":"Package color is an ANSI color package to output colorized or SGR defined\noutput to the standard output. The API can be used in several way, pick one\nthat suits you.\n\nUse simple and default helper functions with predefined foreground colors:\n\nHowever there are times where custom color mixes are required. Below are some\nexamples to create custom color objects and use the print functions of each\nseparate color object.\n\nYou can create PrintXxx functions to simplify even more:\n\nYou can also FprintXxx functions to pass your own io.Writer:\n\nOr create SprintXxx functions to mix strings with other non-colorized strings:\n\nWindows support is enabled by default. All Print functions work as intended.\nHowever only for color.SprintXXX functions, user should use fmt.FprintXXX and\nset the output to color.Output:\n\nUsing with existing code is possible. Just use the Set() method to set the\nstandard output to the given parameters. That way a rewrite of an existing\ncode is not required.\n\nThere might be a case where you want to disable color output (for example to\npipe the standard output of your app to somewhere else). `Color` has support to\ndisable colors both globally and for single color definition. For example\nsuppose you have a CLI app and a `--no-color` bool flag. You can easily disable\nthe color output with:\n\nIt also has support for single color definitions (local). You can\ndisable/enable color output on the fly:","homepage":"https://github.com/cppforlife/color","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/cppforlife/color","keywords_array":[],"namespace":"github.com/cppforlife","versions_count":11,"first_release_published_at":"2016-06-10T11:06:02.000Z","latest_release_published_at":"2020-01-07T17:30:06.000Z","latest_release_number":"v1.9.0","last_synced_at":"2026-03-28T21:22:43.442Z","created_at":"2022-04-11T13:15:10.604Z","updated_at":"2026-03-28T21:22:43.442Z","registry_url":"https://pkg.go.dev/github.com/cppforlife/color","install_command":"go get github.com/cppforlife/color","documentation_url":"https://pkg.go.dev/github.com/cppforlife/color#section-documentation","metadata":{},"repo_metadata":{"uuid":"280251114","full_name":"cppforlife/color","owner":"cppforlife","description":"Color package for Go (golang)","archived":false,"fork":true,"pushed_at":"2020-07-16T20:29:27.000Z","size":1858,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-17T12:47:51.880Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://godoc.org/github.com/fatih/color","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"fatih/color","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"logo_url":null,"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}},"created_at":"2020-07-16T20:25:39.000Z","updated_at":"2020-07-16T20:29:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cppforlife/color","commit_stats":null,"repository_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppforlife%2Fcolor","tags_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppforlife%2Fcolor/tags","manifests_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppforlife%2Fcolor/manifests","owner_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cppforlife","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":108921946,"host_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names"},"owner_record":{"login":"cppforlife","name":"Dmitriy Kalinin","uuid":"185847","kind":"user","description":null,"email":"","website":null,"location":null,"twitter":null,"company":null,"avatar_url":"https://avatars.githubusercontent.com/u/185847?u=7924e54cd93fa6a3e9cde15bfeba84ab7bf1909a\u0026v=4","repositories_count":42,"last_synced_at":"2023-03-11T14:01:11.599Z","metadata":{"has_sponsors_listing":false},"owner_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cppforlife"},"tags":[{"name":"v1.9.0","sha":"daf2830f2741ebb735b21709a520c5f37d642d85","kind":"commit","published_at":"2020-01-07T17:30:06.000Z","download_url":"https://codeload.github.com/cppforlife/color/tar.gz/v1.9.0","html_url":"https://github.com/cppforlife/color/releases/tag/v1.9.0"},{"name":"v1.8.0","sha":"2e5e248695e7e4a0f9ff6d548b83b99199326f49","kind":"commit","published_at":"2020-01-01T21:09:24.000Z","download_url":"https://codeload.github.com/cppforlife/color/tar.gz/v1.8.0","html_url":"https://github.com/cppforlife/color/releases/tag/v1.8.0"},{"name":"v1.7.0","sha":"5b77d2a35fb0ede96d138fc9a99f5c9b6aef11b4","kind":"commit","published_at":"2018-05-15T20:53:03.000Z","download_url":"https://codeload.github.com/cppforlife/color/tar.gz/v1.7.0","html_url":"https://github.com/cppforlife/color/releases/tag/v1.7.0"},{"name":"v1.6.0","sha":"507f6050b8568533fb3f5504de8e5205fa62a114","kind":"commit","published_at":"2018-02-13T13:34:03.000Z","download_url":"https://codeload.github.com/cppforlife/color/tar.gz/v1.6.0","html_url":"https://github.com/cppforlife/color/releases/tag/v1.6.0"},{"name":"v1.5.0","sha":"570b54cabe6b8eb0bc2dfce68d964677d63b5260","kind":"commit","published_at":"2017-05-23T13:53:55.000Z","download_url":"https://codeload.github.com/cppforlife/color/tar.gz/v1.5.0","html_url":"https://github.com/cppforlife/color/releases/tag/v1.5.0"},{"name":"v1.4.1","sha":"9131ab34cf20d2f6d83fdc67168a5430d1c7dc23","kind":"commit","published_at":"2017-03-07T19:28:53.000Z","download_url":"https://codeload.github.com/cppforlife/color/tar.gz/v1.4.1","html_url":"https://github.com/cppforlife/color/releases/tag/v1.4.1"},{"name":"v1.4.0","sha":"7824417a424b65227be8ac9b14d545a7f3e6c3f0","kind":"commit","published_at":"2017-02-17T09:50:16.000Z","download_url":"https://codeload.github.com/cppforlife/color/tar.gz/v1.4.0","html_url":"https://github.com/cppforlife/color/releases/tag/v1.4.0"},{"name":"v1.3.0","sha":"5ec5d9d3c2cf82e9688b34e9bc27a94d616a7193","kind":"commit","published_at":"2017-02-09T08:00:14.000Z","download_url":"https://codeload.github.com/cppforlife/color/tar.gz/v1.3.0","html_url":"https://github.com/cppforlife/color/releases/tag/v1.3.0"},{"name":"v1.2","sha":"34e4ee095d12986a2cef5ddb9aeb3b8cfcfea17c","kind":"commit","published_at":"2017-01-03T16:06:30.000Z","download_url":"https://codeload.github.com/cppforlife/color/tar.gz/v1.2","html_url":"https://github.com/cppforlife/color/releases/tag/v1.2"},{"name":"v1.1.0","sha":"dea9d3a26a087187530244679c1cfb3a42937794","kind":"commit","published_at":"2016-10-02T08:12:58.000Z","download_url":"https://codeload.github.com/cppforlife/color/tar.gz/v1.1.0","html_url":"https://github.com/cppforlife/color/releases/tag/v1.1.0"},{"name":"v1.0.0","sha":"87d4004f2ab62d0d255e0a38f1680aa534549fe3","kind":"commit","published_at":"2016-06-10T11:06:02.000Z","download_url":"https://codeload.github.com/cppforlife/color/tar.gz/v1.0.0","html_url":"https://github.com/cppforlife/color/releases/tag/v1.0.0"},{"name":"v0.2.0","sha":"87d4004f2ab62d0d255e0a38f1680aa534549fe3","kind":"commit","published_at":"2016-06-10T11:06:02.000Z","download_url":"https://codeload.github.com/cppforlife/color/tar.gz/v0.2.0","html_url":"https://github.com/cppforlife/color/releases/tag/v0.2.0"},{"name":"v0.1","sha":"1b35f289c47d5c73c398cea8e006b7bcb6234a96","kind":"commit","published_at":"2015-05-10T22:06:52.000Z","download_url":"https://codeload.github.com/cppforlife/color/tar.gz/v0.1","html_url":"https://github.com/cppforlife/color/releases/tag/v0.1"}]},"repo_metadata_updated_at":"2023-03-21T18:59:45.634Z","dependent_packages_count":71,"downloads":null,"downloads_period":null,"dependent_repos_count":131,"rankings":{"downloads":null,"dependent_repos_count":0.5377490677089458,"dependent_packages_count":0.6010794284955951,"stargazers_count":25.344157256077732,"forks_count":18.871185886183014,"docker_downloads_count":0.4287243308532033,"average":9.156579193863697},"purl":"pkg:golang/github.com/cppforlife/color","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/cppforlife/color","docker_dependents_count":46,"docker_downloads_count":12330465,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/cppforlife/color","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/cppforlife/color/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2023-05-18T02:52:40.385Z","issues_count":0,"pull_requests_count":0,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":null,"issues_closed_count":0,"pull_requests_closed_count":0,"pull_request_authors_count":0,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":null,"merged_pull_requests_count":0,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fcppforlife%2Fcolor/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fcppforlife%2Fcolor/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fcppforlife%2Fcolor/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fcppforlife%2Fcolor/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fcppforlife%2Fcolor/codemeta","maintainers":[]}