{"id":13438660,"url":"https://github.com/SergioBenitez/yansi","last_synced_at":"2025-03-20T06:31:00.698Z","repository":{"id":21507958,"uuid":"93125609","full_name":"SergioBenitez/yansi","owner":"SergioBenitez","description":"A dead simple ANSI terminal color painting library for Rust.","archived":false,"fork":false,"pushed_at":"2024-03-13T07:48:18.000Z","size":177,"stargazers_count":256,"open_issues_count":2,"forks_count":18,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-17T11:54:15.451Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/SergioBenitez.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-06-02T04:03:11.000Z","updated_at":"2025-03-11T00:47:57.000Z","dependencies_parsed_at":"2024-06-18T17:31:22.459Z","dependency_job_id":null,"html_url":"https://github.com/SergioBenitez/yansi","commit_stats":{"total_commits":52,"total_committers":4,"mean_commits":13.0,"dds":0.09615384615384615,"last_synced_commit":"fe19ffc988897d7848565477cee3d1a8e908458c"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SergioBenitez%2Fyansi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SergioBenitez%2Fyansi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SergioBenitez%2Fyansi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SergioBenitez%2Fyansi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SergioBenitez","download_url":"https://codeload.github.com/SergioBenitez/yansi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244031015,"owners_count":20386533,"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-07-31T03:01:07.321Z","updated_at":"2025-03-20T06:30:55.690Z","avatar_url":"https://github.com/SergioBenitez.png","language":"Rust","funding_links":[],"categories":["Libraries","Rust","库 Libraries","库"],"sub_categories":["Command-line","命令行 Command-line","命令行"],"readme":"\u003cdiv align=\"left\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/SergioBenitez/yansi/master/.github/yansi-logo.png\"\n    align=\"center\" alt=\"yansi logo\" width=\"64\" height=\"64\"\u003e\n  \u003cspan\u003e\u0026nbsp;\u003cb\u003eYansi\u003c/b\u003e\u003c/span\u003e\n  \u003cp\u003eA dead simple ANSI terminal color painting library.\u003c/p\u003e\n\n  [![Build Status](https://github.com/SergioBenitez/yansi/workflows/CI/badge.svg)](https://github.com/SergioBenitez/yansi/actions)\n  [![Current Crates.io Version](https://img.shields.io/crates/v/yansi.svg)](https://crates.io/crates/yansi)\n  [![Documentation](https://docs.rs/yansi/badge.svg)](https://docs.rs/yansi)\n\u003c/div\u003e\n\n## Usage\n\nIn your `Cargo.toml`:\n\n```toml\n[dependencies]\nyansi = \"1.0\"\n```\n\nIn your source code:\n\n```rust\nuse yansi::Paint;\n\nprintln!(\"Testing, {}, {}, {}!\",\n    \"Ready\".bold(),\n    \"Set\".black().on_yellow().invert().italic(),\n    \"STOP\".white().on_red().bright().underline().bold());\n```\n\n![\u003e Testing, Ready, Set, STOP!](https://raw.githubusercontent.com/SergioBenitez/yansi/master/.github/yansi-example.svg)\n\n[See the rustdocs](https://docs.rs/yansi) for complete usage details.\n\n## Features\n\nWhy *y*et another *ANSI* terminal coloring library? Here are some reasons:\n\n  * This library makes simple things _simple_: `use` [`Paint`] and go!\n  * Zero dependencies by default. It really is simple.\n  * Zero allocations except as needed by opt-in [wrapping].\n  * [Automatic Windows support] for the vast majority (95%+) of Windows users.\n  * [Featureful `no_std`], no-`alloc`, support with `default-features = false`.\n  * [`Style` constructors are `const`]: store styles statically, even with\n    dynamic conditions!\n  * _Any_ type implementing a formatting trait can be styled, not just strings.\n  * Styling can be [enabled] and [disabled] globally and [dynamically], on the\n    fly.\n  * A `Style` can be predicated on arbitrary [conditions].\n  * Formatting specifiers like `{:x}` and `{:08b}` are supported and preserved!\n  * [Built-in (optional) conditions] for [TTY detection] and [common environment\n    variables].\n  * Arbitrary items can be [_masked_] for selective disabling.\n  * Styling can [_wrap_] to preserve styling across resets.\n  * Styling can [_linger_] beyond a single value.\n  * Experimental support for [hyperlinking] is included.\n  * The name `yansi` is pretty cool 😎.\n\n[`Paint`]: https://docs.rs/yansi/1.0.0/yansi/trait.Paint.html\n[`ansi_term`]: https://crates.io/crates/ansi_term\n[`colored`]: https://crates.io/crates/colored\n[`term_painter`]: https://crates.io/crates/term-painter\n[_masked_]: https://docs.rs/yansi/1.0.0/yansi/#masking\n[wrapping]: https://docs.rs/yansi/1.0.0/yansi/#wrapping\n[_wrap_]: https://docs.rs/yansi/1.0.0/yansi/#wrapping\n[_linger_]: https://docs.rs/yansi/1.0.0/yansi/#lingering\n[conditions]: https://docs.rs/yansi/1.0.0/yansi/#per-style\n[enabled]: https://docs.rs/yansi/1.0.0/yansi/fn.enable.html\n[disabled]: https://docs.rs/yansi/1.0.0/yansi/fn.disable.html\n[dynamically]: https://docs.rs/yansi/1.0.0/yansi/fn.whenever.html\n[enabled conditionally]: https://docs.rs/yansi/1.0.0/yansi/struct.Condition.html\n[TTY detection]: https://docs.rs/yansi/1.0.0/yansi/struct.Condition.html#impl-Condition-1\n[common environment variables]: https://docs.rs/yansi/1.0.0/yansi/struct.Condition.html#impl-Condition-2\n[Automatic Windows support]: https://docs.rs/yansi/1.0.0/yansi/#windows\n[Built-in (optional) conditions]: https://docs.rs/yansi/1.0.0/yansi/struct.Condition.html#built-in-conditions\n[hyperlinking]: https://docs.rs/yansi/1.0.0/yansi/hyperlink/index.html\n[`Style` constructors are `const`]: https://docs.rs/yansi/1.0.0/yansi/#uniform-const-builders\n[Featureful `no_std`]: https://docs.rs/yansi/1.0.0/yansi/#crate-features\n\n## License\n\n`yansi` is licensed under either of the following, at your option:\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT License ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSergioBenitez%2Fyansi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSergioBenitez%2Fyansi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSergioBenitez%2Fyansi/lists"}