{"id":34327066,"url":"https://github.com/shiena/ansicolor","last_synced_at":"2025-12-17T16:51:28.024Z","repository":{"id":16912243,"uuid":"19673435","full_name":"shiena/ansicolor","owner":"shiena","description":"Ansicolor library provides color console in Windows as ANSICON for Golang.","archived":false,"fork":false,"pushed_at":"2023-05-09T05:44:54.000Z","size":37,"stargazers_count":234,"open_issues_count":3,"forks_count":41,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-08-13T14:48:15.485Z","etag":null,"topics":["ansi-colors","go","windows"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/shiena/ansicolor","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/shiena.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-05-11T18:06:38.000Z","updated_at":"2025-07-15T13:09:22.000Z","dependencies_parsed_at":"2024-06-18T12:26:11.304Z","dependency_job_id":null,"html_url":"https://github.com/shiena/ansicolor","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/shiena/ansicolor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiena%2Fansicolor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiena%2Fansicolor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiena%2Fansicolor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiena%2Fansicolor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shiena","download_url":"https://codeload.github.com/shiena/ansicolor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiena%2Fansicolor/sbom","scorecard":{"id":818340,"data":{"date":"2025-08-11","repo":{"name":"github.com/shiena/ansicolor","commit":"a9deabde6e02631323eccc1f623994c354f8211b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":1,"reason":"Found 3/23 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T14:44:39.341Z","repository_id":16912243,"created_at":"2025-08-23T14:44:39.341Z","updated_at":"2025-08-23T14:44:39.341Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27784825,"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-12-17T02:00:08.291Z","response_time":55,"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":["ansi-colors","go","windows"],"created_at":"2025-12-17T16:51:24.040Z","updated_at":"2025-12-17T16:51:28.017Z","avatar_url":"https://github.com/shiena.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PkgGoDev](https://pkg.go.dev/badge/github.com/shiena/ansicolor)](https://pkg.go.dev/github.com/shiena/ansicolor)\n[![Go Report Card](https://goreportcard.com/badge/github.com/shiena/ansicolor)](https://goreportcard.com/report/github.com/shiena/ansicolor)\n\n# ansicolor\n\nAnsicolor library provides color console in Windows as ANSICON for Golang.\n\n## Features\n\n|Escape sequence|Text attributes|\n|---------------|----|\n|\\x1b[0m|All attributes off(color at startup)|\n|\\x1b[1m|Bold on(enable foreground intensity)|\n|\\x1b[4m|Underline on|\n|\\x1b[5m|Blink on(enable background intensity)|\n|\\x1b[21m|Bold off(disable foreground intensity)|\n|\\x1b[24m|Underline off|\n|\\x1b[25m|Blink off(disable background intensity)|\n\n|Escape sequence|Foreground colors|\n|---------------|----|\n|\\x1b[30m|Black|\n|\\x1b[31m|Red|\n|\\x1b[32m|Green|\n|\\x1b[33m|Yellow|\n|\\x1b[34m|Blue|\n|\\x1b[35m|Magenta|\n|\\x1b[36m|Cyan|\n|\\x1b[37m|White|\n|\\x1b[39m|Default(foreground color at startup)|\n|\\x1b[90m|Light Gray|\n|\\x1b[91m|Light Red|\n|\\x1b[92m|Light Green|\n|\\x1b[93m|Light Yellow|\n|\\x1b[94m|Light Blue|\n|\\x1b[95m|Light Magenta|\n|\\x1b[96m|Light Cyan|\n|\\x1b[97m|Light White|\n\n|Escape sequence|Background colors|\n|---------------|----|\n|\\x1b[40m|Black|\n|\\x1b[41m|Red|\n|\\x1b[42m|Green|\n|\\x1b[43m|Yellow|\n|\\x1b[44m|Blue|\n|\\x1b[45m|Magenta|\n|\\x1b[46m|Cyan|\n|\\x1b[47m|White|\n|\\x1b[49m|Default(background color at startup)|\n|\\x1b[100m|Light Gray|\n|\\x1b[101m|Light Red|\n|\\x1b[102m|Light Green|\n|\\x1b[103m|Light Yellow|\n|\\x1b[104m|Light Blue|\n|\\x1b[105m|Light Magenta|\n|\\x1b[106m|Light Cyan|\n|\\x1b[107m|Light White|\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/shiena/ansicolor\"\n)\n\nfunc main() {\n\tw := ansicolor.NewAnsiColorWriter(os.Stdout)\n\ttext := \"%sforeground %sbold%s %sbackground%s\\n\"\n\tfmt.Fprintf(w, text, \"\\x1b[31m\", \"\\x1b[1m\", \"\\x1b[21m\", \"\\x1b[41;32m\", \"\\x1b[0m\")\n\tfmt.Fprintf(w, text, \"\\x1b[32m\", \"\\x1b[1m\", \"\\x1b[21m\", \"\\x1b[42;31m\", \"\\x1b[0m\")\n\tfmt.Fprintf(w, text, \"\\x1b[33m\", \"\\x1b[1m\", \"\\x1b[21m\", \"\\x1b[43;34m\", \"\\x1b[0m\")\n\tfmt.Fprintf(w, text, \"\\x1b[34m\", \"\\x1b[1m\", \"\\x1b[21m\", \"\\x1b[44;33m\", \"\\x1b[0m\")\n\tfmt.Fprintf(w, text, \"\\x1b[35m\", \"\\x1b[1m\", \"\\x1b[21m\", \"\\x1b[45;36m\", \"\\x1b[0m\")\n\tfmt.Fprintf(w, text, \"\\x1b[36m\", \"\\x1b[1m\", \"\\x1b[21m\", \"\\x1b[46;35m\", \"\\x1b[0m\")\n\tfmt.Fprintf(w, text, \"\\x1b[37m\", \"\\x1b[1m\", \"\\x1b[21m\", \"\\x1b[47;30m\", \"\\x1b[0m\")\n}\n```\n\n![screenshot](https://gist.githubusercontent.com/shiena/a1bada24b525314a7d5e/raw/c763aa7cda6e4fefaccf831e2617adc40b6151c7/main.png)\n\n## See also:\n\n- https://github.com/daviddengcn/go-colortext\n- https://github.com/adoxa/ansicon\n- https://github.com/aslakhellesoy/wac\n- https://github.com/wsxiaoys/terminal\n- https://github.com/mattn/go-colorable\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiena%2Fansicolor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshiena%2Fansicolor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiena%2Fansicolor/lists"}