@boost/terminalFunctionssliceAnsisliceAnsi CallablesliceAnsi(text: string, start: number, end?: number): stringSlice a string while preserving ANSI escape codes. Based on slice-ansi. import { sliceAnsi } from '@boost/terminal';const text = sliceAnsi(aStringThatMayContainAnsi, 15, 25);
Slice a string while preserving ANSI escape codes. Based on slice-ansi.