slice-ansi
Slice a string with ANSI escape codes
Install
Usage
API
sliceAnsi(input, beginSlice, [endSlice])
input
Type: string
String with ANSI escape codes. Like one styled by chalk
.
beginSlice
Type: number
Zero-based index at which to begin the slice.
endSlice
Type: number
Zero-based index at which to end the slice.
Related
wrap-ansi - Wordwrap a string with ANSI escape codes
cli-truncate - Truncate a string to a specific width in the terminal
chalk - Terminal string styling done right
Maintainers
License
MIT
Last updated