{"id":20624311,"url":"https://github.com/ortense/consolestyle","last_synced_at":"2026-04-21T01:03:51.336Z","repository":{"id":226822463,"uuid":"769730336","full_name":"ortense/consolestyle","owner":"ortense","description":"A lightweight and expressive package to style your console output with ease, adding colors, backgrounds, and various text styles to enhance your command-line experience.","archived":false,"fork":false,"pushed_at":"2024-03-10T00:11:11.000Z","size":90,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T08:39:14.247Z","etag":null,"topics":["ansi-escape-codes","cli","command-line","commandline","console","go","golang","golang-package","terminal"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/ortense/consolestyle","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/ortense.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":"2024-03-09T22:21:07.000Z","updated_at":"2024-08-20T20:37:16.000Z","dependencies_parsed_at":"2024-11-16T12:31:12.747Z","dependency_job_id":"a5f94ccf-3c66-4cb1-838f-3131d8490a3c","html_url":"https://github.com/ortense/consolestyle","commit_stats":null,"previous_names":["ortense/consolestyle"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ortense/consolestyle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ortense%2Fconsolestyle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ortense%2Fconsolestyle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ortense%2Fconsolestyle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ortense%2Fconsolestyle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ortense","download_url":"https://codeload.github.com/ortense/consolestyle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ortense%2Fconsolestyle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32072325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T21:26:33.338Z","status":"ssl_error","status_checked_at":"2026-04-20T21:26:22.081Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-escape-codes","cli","command-line","commandline","console","go","golang","golang-package","terminal"],"created_at":"2024-11-16T12:30:30.032Z","updated_at":"2026-04-21T01:03:51.316Z","avatar_url":"https://github.com/ortense.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @ortense/consolestyle\n\n![consolestyle demo in vscode terminal](https://raw.githubusercontent.com/ortense/consolestyle/main/assets/example.png)\n\nA lightweight and expressive package to style your console output with ease, adding colors, backgrounds, and various text styles to enhance your command-line experience.\n\n\n## Install\n\n```sh\ngo get github.com/ortense/consolestyle\n```\n\n## Usage\n\nYou can use the fluent api of `Style` func.\n\n```go\nimport (\n  \"fmt\"\n  \"github.com/ortense/consolestyle\"\n)\n\nfunc main() {\n  message := consolestyle.\n    Style(\"Hey there! 👋\").Cyan().Italic().\n    EmptyLine().\n    NewLine(\"Are u tired of boring console outputs?\").Inverse().\n    EmptyLine().\n    NewLine(\"✨ Now u can easily create fun console messages! 🦄\").Magenta().Bold()\n\n  fmt.Println(message)\n}\n```\n\nAlternatively, you can choose specific functions to apply styles to your console output.\n\n```go\nimport (\n  \"fmt\"\n  cs \"github.com/ortense/consolestyle\"\n)\n\nfunc main() {\n  fmt.Println(cs.Italic(cs.Green(\"\\\"Simplicity is the ultimate sophistication.\\\"\")))\n  fmt.Println(cs.Dim(\"- Leonardo da Vinci\"))\n}\n```\n\nMore details in the [complete documentation](https://pkg.go.dev/github.com/ortense/consolestyle).\n\n## Key Features\n\n- Easily style your console output with a fluent API.\n- Apply a wide range of text colors, backgrounds, and styles.\n- Enhance your command-line interface with vibrant and visually appealing messages.\n\n### Available styles\n\n- `Red()`: Apply red text color.\n- `Green()`: Apply green text color.\n- `Yellow()`: Apply yellow text color.\n- `Blue()`: Apply blue text color.\n- `Magenta()`: Apply magenta text color.\n- `Cyan()`: Apply cyan text color.\n- `BgRed()`: Apply red background color.\n- `BgGreen()`: Apply green background color.\n- `BgYellow()`: Apply yellow background color.\n- `BgBlue()`: Apply blue background color.\n- `BgMagenta()`: Apply magenta background color.\n- `BgCyan()`: Apply cyan background color.\n- `Inverse()`: Apply inverted colors\n- `Bold()`: Apply bold text style.\n- `Dim()`: Apply dim text style.\n- `Italic()`: Apply italic text style.\n- `Underline()`: Apply underline text style.\n- `Strike()`: Apply strike-through text style.\n\n\n## License\n\nThis package is licensed under the MIT License. See the LICENSE file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fortense%2Fconsolestyle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fortense%2Fconsolestyle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fortense%2Fconsolestyle/lists"}