{"id":13636661,"url":"https://github.com/LukasKalbertodt/bunt","last_synced_at":"2025-04-19T08:32:56.330Z","repository":{"id":47188256,"uuid":"283599720","full_name":"LukasKalbertodt/bunt","owner":"LukasKalbertodt","description":"Simple macros to write colored and formatted text to a terminal. Based on `termcolor`, thus also cross-platform.","archived":false,"fork":false,"pushed_at":"2023-04-23T15:01:21.000Z","size":137,"stargazers_count":224,"open_issues_count":6,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-06T03:13:44.905Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LukasKalbertodt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2020-07-29T20:49:20.000Z","updated_at":"2024-10-02T18:54:42.000Z","dependencies_parsed_at":"2024-06-20T13:08:55.960Z","dependency_job_id":"44df7187-7450-4930-94f7-36658cc09937","html_url":"https://github.com/LukasKalbertodt/bunt","commit_stats":{"total_commits":95,"total_committers":1,"mean_commits":95.0,"dds":0.0,"last_synced_commit":"620c13e4f23a7919bd399f7ba5cf3ee1cca172e6"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukasKalbertodt%2Fbunt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukasKalbertodt%2Fbunt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukasKalbertodt%2Fbunt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukasKalbertodt%2Fbunt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LukasKalbertodt","download_url":"https://codeload.github.com/LukasKalbertodt/bunt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223795250,"owners_count":17204136,"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","rust","terminal"],"created_at":"2024-08-02T00:01:03.799Z","updated_at":"2024-11-09T06:30:45.786Z","avatar_url":"https://github.com/LukasKalbertodt.png","language":"Rust","funding_links":[],"categories":["Libraries","库 Libraries"],"sub_categories":["Command-line","命令行 Command-line"],"readme":"# Bunt: simple macro-based terminal colors and styles\n\n[\u003cimg alt=\"CI status of master\" src=\"https://img.shields.io/github/actions/workflow/status/LukasKalbertodt/bunt/ci.yml?branch=master\u0026label=CI\u0026logo=github\u0026logoColor=white\u0026style=for-the-badge\" height=\"23\"\u003e](https://github.com/LukasKalbertodt/bunt/actions/workflows/ci.yml)\n[\u003cimg alt=\"Crates.io Version\" src=\"https://img.shields.io/crates/v/bunt?logo=rust\u0026style=for-the-badge\" height=\"23\"\u003e](https://crates.io/crates/bunt)\n[\u003cimg alt=\"docs.rs\" src=\"https://img.shields.io/crates/v/bunt?color=blue\u0026label=docs\u0026style=for-the-badge\" height=\"23\"\u003e](https://docs.rs/bunt)\n\n\n`bunt` offers macros to easily print colored and formatted text to a terminal.\nIt is just a convenience API on top of [`termcolor`](https://crates.io/crates/termcolor).\n`bunt` is implemented using procedural macros, but it does not depend on `syn` and compiles fairly quickly.\n\n*Minimum Supported Rust Version*: 1.46.0\n\n```rust\n// Style tags will color/format text between the tags.\nbunt::println!(\"I really like {$yellow}lemons{/$}! Like, {$blue+italic}a lot{/$}.\");\n\n// To style a single argument, you can also use the `{[style]...}` syntax. This\n// can be combined with style tags.\nlet v = vec![1, 2, 3];\nbunt::println!(\"Here is some data: {[green]:?}. {$bold}Length: {[cyan]}{/$}\", v, v.len());\n```\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\".github/readme-image.png\" width=\"75%\"\u003e\u003c/img\u003e\n\u003c/p\u003e\n\nSee [**the documentation**](https://docs.rs/bunt) for more information.\n\n## Status of this project\n\nThis is still a young project, but I already use it in two applications of mine.\nThe syntax is certainly not final yet.\n[Seeking feedback from the community!](https://github.com/LukasKalbertodt/bunt/issues/1)\n\n\n\u003cbr /\u003e\n\n---\n\n## License\n\nLicensed under either of \u003ca href=\"LICENSE-APACHE\"\u003eApache License, Version\n2.0\u003c/a\u003e or \u003ca href=\"LICENSE-MIT\"\u003eMIT license\u003c/a\u003e at your option.\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in this project by you, as defined in the Apache-2.0 license,\nshall be dual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLukasKalbertodt%2Fbunt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLukasKalbertodt%2Fbunt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLukasKalbertodt%2Fbunt/lists"}