A tiny and fast text slicing library which takes ANSI escapes into account.
github.com/43081j/fast-slice-ansi
43081j/fast-slice-ansi