{"id":13961620,"url":"https://github.com/betafcc/clc","last_synced_at":"2025-07-21T06:31:15.928Z","repository":{"id":92868232,"uuid":"166219356","full_name":"betafcc/clc","owner":"betafcc","description":"Tiny bash utility for  coloring terminal output and prompt","archived":false,"fork":false,"pushed_at":"2021-06-13T09:49:34.000Z","size":599,"stargazers_count":62,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-28T07:34:34.287Z","etag":null,"topics":["ansi-colors","bash","formatting","prompt","tiny","tty"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/betafcc.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}},"created_at":"2019-01-17T12:06:29.000Z","updated_at":"2024-10-27T16:00:47.000Z","dependencies_parsed_at":"2023-04-23T11:17:03.453Z","dependency_job_id":null,"html_url":"https://github.com/betafcc/clc","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/betafcc/clc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betafcc%2Fclc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betafcc%2Fclc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betafcc%2Fclc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betafcc%2Fclc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/betafcc","download_url":"https://codeload.github.com/betafcc/clc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betafcc%2Fclc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266253519,"owners_count":23900051,"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":["ansi-colors","bash","formatting","prompt","tiny","tty"],"created_at":"2024-08-08T17:01:18.516Z","updated_at":"2025-07-21T06:31:15.638Z","avatar_url":"https://github.com/betafcc.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# clc\nTiny bash utility for  coloring terminal output and prompt\n\n![](./examples/usage.gif)\n\nThe motivating use case was easily stacking styles, which is not possible to do with other tools like [node's chalk](https://github.com/chalk/chalk-cli):\n\n![](./examples/stacking.gif)\n\nUseful for templating colorful prompts (use `-e|--escape [zsh|bash]` for this)\n\nfor bash: `PS1=$(clc -e bash '\u003cbold:\u003cred:[\u003cyellow:\\\\u\u003e\u003cgreen:@\u003e\u003cblue:\\\\h\u003e\u003cmagenta:\\\\W\u003e]\u003e$ \u003e')`\n\nfor zsh: `PS1=$(clc -e zsh '\u003cbold:\u003cred:[\u003cyellow:%n\u003e\u003cgreen:@\u003e\u003cblue:%m\u003e\u003cmagenta:%1d\u003e]\u003e$ \u003e')`\n\n\n![](./examples/prompt.png)\n\n## Try it\n\n```bash\nbash \u003c(curl -s https://raw.githubusercontent.com/betafcc/clc/master/clc) '\u003cred:hello \u003creverse:world\u003e'\n```\n\n## Install\n\n```bash\ndest='/usr/local/bin/clc'; curl -s https://raw.githubusercontent.com/betafcc/clc/master/clc | sudo tee \"${dest}\" \u003e /dev/null \u0026\u0026 sudo chmod +x \"${dest}\"\n```\n\nThen use:\n\n```bash\nclc '\u003cred:hello \u003creverse:world\u003e'\n```\n\n## More\n\n\n### Use foreground colors:\n\n```bash\nclc '\u003cred:hello\u003e'\nclc '\u003cgreen:hello \u003cblue: world\u003e\u003e'\nclc '\u003crgb 255 120 120: hello\u003e'\nclc '\u003crgb 255 120 120: hello\u003e'\nclc '\u003c#f66: hello\u003e'\nclc '\u003c#66fa73: hello\u003e'\n```\n\n### Use background colors:\n\n```bash\nclc '\u003cbg red:hello\u003e'\nclc '\u003cbg green:hello \u003cbg blue: world\u003e\u003e'\nclc '\u003cbg rgb 255 120 120: hello\u003e'\nclc '\u003cbg #66fa73: hello\u003e'\n```\n\n### Use effects:\n\n```bash\nclc '\u003cbold:hello\u003e'\nclc '\u003cbold:hello \u003cunderline: world\u003e\u003e'\n```\n\n### Combine commands:\n\n```bash\nclc '\u003cred + bg blue + underline + bold:hello\u003e'\n```\n\n### Escape characters with '%':\n\n```bash\nclc '\u003cred:%\u003chello world%\u003e\u003e'\n```\n\n### Available Colors:\n- black\n- red\n- green\n- yellow\n- blue\n- magenta\n- cyan\n- white\n- rgb \u003c0-255\u003e \u003c0-255\u003e \u003c0-255\u003e\n- #000 - #fff\n- #000000 - #ffffff\n\n### Available effects:\n- normal\n- bold\n- dim\n- strike\n- italic\n- underline\n- reverse\n- invisible\n- blink\n\n### Version:\n\n```bash\nclc -v\nclc --version\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetafcc%2Fclc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbetafcc%2Fclc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetafcc%2Fclc/lists"}