{"id":17145175,"url":"https://github.com/jeremyletang/colorize","last_synced_at":"2025-08-07T15:37:34.180Z","repository":{"id":14389029,"uuid":"17099415","full_name":"jeremyletang/colorize","owner":"jeremyletang","description":"Simple ansi color library","archived":false,"fork":false,"pushed_at":"2016-07-01T16:45:20.000Z","size":31,"stargazers_count":18,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T01:46:51.796Z","etag":null,"topics":[],"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/jeremyletang.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}},"created_at":"2014-02-23T01:52:27.000Z","updated_at":"2025-01-02T18:02:54.000Z","dependencies_parsed_at":"2022-09-13T15:52:00.662Z","dependency_job_id":null,"html_url":"https://github.com/jeremyletang/colorize","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/jeremyletang%2Fcolorize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremyletang%2Fcolorize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremyletang%2Fcolorize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremyletang%2Fcolorize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeremyletang","download_url":"https://codeload.github.com/jeremyletang/colorize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248696232,"owners_count":21147093,"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":[],"created_at":"2024-10-14T21:04:49.571Z","updated_at":"2025-04-13T10:21:36.483Z","avatar_url":"https://github.com/jeremyletang.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"colorize\n========\n\n__libcolorize__ provide simple text colorization for terminal emulator, using ansi escape characters.\n\nTo build __libcolorize__ just do :\n\n```Shell\n\u003e rustc lib.rs\n```\n\n__libcolorize__ is really simple to use, see this short example !\n\n```Rust\nextern crate colorize;\n// Import the trait implemented for \u0026'static str and ~str\nuse colorize::AnsiColor;\n// Import the colors for the global\nuse colorize::{BrightRed, Blue};\n\npub fn main() {\n    // Set some global colors\n    colorize::global_fg(BrightRed);\n    colorize::global_bg(Blue);\n    // ^~~~ These settings are reset to default at the end.\n\n    // You can use specific colors or style on a given str,\n    // the globals colors are restored after !\n\n    // Write a green underlined text on a yellow background !\n    println!(\"{}\", \"Hello World !\".green().underlined().yellowb());\n\n    // Use bright or normal colors\n    println!(\"{}\", \"Bright Green foreground and Magenta background !\".b_green().magentab());\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremyletang%2Fcolorize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeremyletang%2Fcolorize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremyletang%2Fcolorize/lists"}