@boost/terminalFunctionswrapAnsiwrapAnsi CallablewrapAnsi(text: string, width: number, options?: WrapOptions): stringWrap a string that contains ANSI escape codes to a desired terminal width. Based on wrap-ansi. import { wrapAnsi } from '@boost/terminal';const text = wrapAnsi(aStringThatContainsAnsi, 20);
Wrap a string that contains ANSI escape codes to a desired terminal width. Based on wrap-ansi.