28 releases

0.6.18 Nov 4, 2024
0.6.15 Jul 25, 2024
0.6.13 Feb 27, 2024
0.6.5 Dec 8, 2023
0.2.6 Mar 17, 2023

#256 in Command-line interface

Download history 1890689/week @ 2024-08-25 1799373/week @ 2024-09-01 1855822/week @ 2024-09-08 1780961/week @ 2024-09-15 2039802/week @ 2024-09-22 2181906/week @ 2024-09-29 2759986/week @ 2024-10-06 2554126/week @ 2024-10-13 2325983/week @ 2024-10-20 2124483/week @ 2024-10-27 2266859/week @ 2024-11-03 2160570/week @ 2024-11-10 2168095/week @ 2024-11-17 1920108/week @ 2024-11-24 2211421/week @ 2024-12-01 2400752/week @ 2024-12-08

8,852,279 downloads per month
Used in 417 crates (75 directly)

MIT/Apache

220KB
4K SLoC

anstream

A simple cross platform library for writing colored text to a terminal.

A portmanteau of "ansi stream"

Documentation License Crates Status

Specialized stdout and stderr that accept ANSI escape codes and adapt them based on the terminal's capabilities.

anstream::adapter::strip_str may also be of interest on its own for low overhead stripping of ANSI escape codes.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0–6.5MB
~34K SLoC