SergioBenitez/yansi

A dead simple ANSI terminal color painting library for Rust.

Rust

278

82 commits

updated Mar 13, 2024

See the code

README

yansi logo  Yansi

A dead simple ANSI terminal color painting library.

Build Status Current Crates.io Version Documentation

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:

SergioBenitez/yansi

A dead simple ANSI terminal color painting library for Rust.

Rust

278

82 commits

updated Mar 13, 2024

See the code

README

yansi logo  Yansi

A dead simple ANSI terminal color painting library.

Build Status Current Crates.io Version Documentation

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:

Project health

Overall

2.8/10

Maintained

0/10

Code review

0/10
OpenSSF Scorecard

crates.io

Latest release

1.0.1 · Mar 13, 2024

Releases this year

0

Significant stargazers

David Peter

8,175 followers · starred Apr 2018

Sam Estep

138 followers · starred Jul 2024

Robin Appelman

216 followers · starred Aug 2021

Vitalii Kryvenko

94 followers · starred Aug 2023