{"id":18280125,"url":"https://github.com/treasersimplifies/cstr","last_synced_at":"2025-04-09T04:49:36.902Z","repository":{"id":57561562,"uuid":"321991447","full_name":"treasersimplifies/cstr","owner":"treasersimplifies","description":"colorful string printing in your console","archived":false,"fork":false,"pushed_at":"2020-12-16T14:31:00.000Z","size":1251,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T23:27:45.974Z","etag":null,"topics":["color","golang","logging","printing","string"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/treasersimplifies.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-16T13:30:35.000Z","updated_at":"2020-12-30T08:04:43.000Z","dependencies_parsed_at":"2022-09-19T01:30:31.007Z","dependency_job_id":null,"html_url":"https://github.com/treasersimplifies/cstr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treasersimplifies%2Fcstr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treasersimplifies%2Fcstr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treasersimplifies%2Fcstr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/treasersimplifies%2Fcstr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/treasersimplifies","download_url":"https://codeload.github.com/treasersimplifies/cstr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980820,"owners_count":21027803,"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":["color","golang","logging","printing","string"],"created_at":"2024-11-05T12:33:14.523Z","updated_at":"2025-04-09T04:49:36.878Z","avatar_url":"https://github.com/treasersimplifies.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Colorful String\n\nDye your string with color when printing it.\n\nAre you a programmer willing to try something new?\n\nAre you bored with you single-color command line output text(like the following)?\n\n![](./pics/boring.jpg)\n\nAre you looking for decorations for your command line tool?\n\nThis package will show you this: \n\n![](./pics/colorful.jpg)\n\n\n## Example\n\n```shell\n$ git clone git@github.com:treasersimplifies/cstr.git\n$ cd cstr\n$ go test\n```\n\nand you will see:\n\n![](./pics/demo.jpg)\n\n## Installation\n\nTo install cstr package, you need to install Go first.\n\nInstall cstr:\n\n```shell\ngo get github.com/treasersimplifies/cstr\n# or:\ngo get -u github.com/treasersimplifies/cstr@master\n```\nImport cstr in your code:\n\n```go\nimport \"github.com/treasersimplifies/cstr\"\n```\n\nUse in code:\n\n```go\n\nfmt.Println(cstr.Dye(\"This is a Red string.....\", \"Red\"))\nfmt.Println(cstr.DyeColorfully(\"THIS IS A COLORFUL STRING...........\\n\", []string{\"Red\", \"Green\", \"Yellow\", \"Blue\", \"Pink\", \"Skyblue\", \"White\"}))\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreasersimplifies%2Fcstr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftreasersimplifies%2Fcstr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreasersimplifies%2Fcstr/lists"}