6 releases
Uses new Rust 2024
new 0.2.1 | May 13, 2025 |
---|---|
0.2.0 | May 11, 2025 |
0.1.4 | May 2, 2021 |
#266 in Command line utilities
65 downloads per month
12KB
121 lines
'ansi' - a CLI utility to quickly get ANSI escape codes
This Rust project called ansi-escape-sequences-cli
provides an executable called ansi
which can be used on the Terminal to easily colorize/style your output.
Usage
- Add
ansi
to yourPATH
- Embed it in your shell scripts like this:
echo "$(ansi yellow bold)WARNING$(ansi reset): There was a problem"
- Type
--help
for more guidance!
Install
$ cargo install ansi-escape-sequences-cli
(the binary is just called ansi
!)
MSRV
Ths MSRV is 1.85.1
.
Dependencies
~3–12MB
~157K SLoC