ansi-str
This is a library provides a set of methods to work with strings escaped with ansi code sequences.
It's an agnostic library in regard to different color libraries. Therefore it can be used with any library (e.g. owo-colors, nu-ansi-term).
Usage
use AnsiStr;
use ;
Running this code will result in the following output.
For more examples, you check out the examples
directory.
Note
The library has derivatived from zhiburt/ansi-cut