Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public static wrapWords(text: string, maxLineLength?: number, indent?: number): string {
if (!indent) {
indent = 0;
}
if (!maxLineLength) {
maxLineLength = Utilities.getConsoleWidth();
}
const wrap: (textToWrap: string) => string = wordwrap.soft(indent, maxLineLength);
return wrap(text);
}