Home

Awesome

<div align="left"> <img src="https://raw.githubusercontent.com/SergioBenitez/yansi/master/.github/yansi-logo.png" align="center" alt="yansi logo" width="64" height="64"> <span>&nbsp;<b>Yansi</b></span> <p>A dead simple ANSI terminal color painting library.</p>

Build Status Current Crates.io Version Documentation

</div>

Usage

In your Cargo.toml:

[dependencies]
yansi = "1.0"

In your source code:

use yansi::Paint;

println!("Testing, {}, {}, {}!",
    "Ready".bold(),
    "Set".black().on_yellow().invert().italic(),
    "STOP".white().on_red().bright().underline().bold());

> Testing, Ready, Set, STOP!

See the rustdocs for complete usage details.

Features

Why yet another ANSI terminal coloring library? Here are some reasons:

License

yansi is licensed under either of the following, at your option: