28 releases

new 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

#131 in Command-line interface

Download history 1593200/week @ 2024-07-17 1716235/week @ 2024-07-24 1764724/week @ 2024-07-31 1800528/week @ 2024-08-07 1792045/week @ 2024-08-14 1876473/week @ 2024-08-21 1787892/week @ 2024-08-28 1914213/week @ 2024-09-04 1821389/week @ 2024-09-11 1952883/week @ 2024-09-18 2065385/week @ 2024-09-25 2495870/week @ 2024-10-02 2604623/week @ 2024-10-09 2537622/week @ 2024-10-16 2127057/week @ 2024-10-23 2215719/week @ 2024-10-30

10,013,890 downloads per month
Used in 373 crates (65 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
~36K SLoC