{"id":22654234,"url":"https://github.com/stevencyb/rcolors","last_synced_at":"2026-03-10T10:31:26.542Z","repository":{"id":255445265,"uuid":"851794396","full_name":"StevenCyb/rcolors","owner":"StevenCyb","description":"A simple terminal colorization/style tool written in Rust.","archived":false,"fork":false,"pushed_at":"2024-09-04T13:39:17.000Z","size":79,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-27T21:44:58.789Z","etag":null,"topics":["color","rust","terminal"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/StevenCyb.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-09-03T17:59:49.000Z","updated_at":"2024-09-04T13:39:20.000Z","dependencies_parsed_at":"2024-09-05T15:10:51.420Z","dependency_job_id":null,"html_url":"https://github.com/StevenCyb/rcolors","commit_stats":null,"previous_names":["stevencyb/rcolors"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/StevenCyb/rcolors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenCyb%2Frcolors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenCyb%2Frcolors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenCyb%2Frcolors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenCyb%2Frcolors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StevenCyb","download_url":"https://codeload.github.com/StevenCyb/rcolors/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenCyb%2Frcolors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30330538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: 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":["color","rust","terminal"],"created_at":"2024-12-09T09:35:58.492Z","updated_at":"2026-03-10T10:31:26.521Z","avatar_url":"https://github.com/StevenCyb.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RColors\n[![Crates.io](https://img.shields.io/crates/v/rcolors.svg)](https://crates.io/crates/rcolors)\n![CC0 licensed](https://img.shields.io/github/license/StevenCyb/rcolors)\n[![Tests](https://github.com/StevenCyb/rcolors/actions/workflows/tests.yml/badge.svg)](https://github.com/StevenCyb/rcolors/actions/workflows/tests.yml)\n[![Clippy](https://github.com/StevenCyb/rcolors/actions/workflows/lint.yml/badge.svg)](https://github.com/StevenCyb/rcolors/actions/workflows/lint.yml)\n[![Rustfmt](https://github.com/StevenCyb/rcolors/actions/workflows/rustfmt.yml/badge.svg)](https://github.com/StevenCyb/rcolors/actions/workflows/rustfmt.yml)\n[![Release](https://github.com/StevenCyb/rcolors/actions/workflows/release.yml/badge.svg)](https://github.com/StevenCyb/rcolors/actions/workflows/release.yml)\n\nRColor lets you use styled outputs in terms of [ANSI Escape\nCodes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors) in Rust. \n\n\u003cimg src=\".media/thumbnail.jpg\" width=\"600px\"\u003e\n\n## Usage\n### Using Macros\nThe following colors are supported by macros: `black`, `red`, `green`, `yellow`, `blue`, `magenta`, `cyan` and `white`.\n```rust\nuse rcolors::*;\n\nfn main() {\n    // like `print` but with color suffix\n    print_red!(\"This is red print! \");\n    \n    // like `println` but with color suffix\n    println_red!(\"This is red println!\");\n\n    // like `format`\n    let x = red!(\"This is a value\");\n    println!(\"{}\", x);\n}\n```\n### Using Builder\nThe builder makes it easier to build complex colored text sections.\nUnlike the macros, the builder also offers style ANSI codes.\nE.g.:\n```rust\nfn main() {\n    Builder::new()\n        .bold().fg_yellow().text(\"Language: \").reset()\n        .fg_cyan().italic().text(\"Rust\\n\").reset()\n        .bold().fg_yellow().text(\"Username: \").reset()\n        .fg_cyan().italic().text(\"root\\n\").reset()\n        .bold().fg_yellow().text(\"Password: \").reset()\n        .fg_cyan().italic().text(\"********\\n\")\n        // .print();\n        // .println();\n        .as_string();\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevencyb%2Frcolors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevencyb%2Frcolors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevencyb%2Frcolors/lists"}