Home > @rushstack/terminal > PrintUtilities > wrapWords
PrintUtilities.wrapWords() method
Applies word wrapping. If maxLineLength is unspecified, then it defaults to the console width.
Signature:
static wrapWords(text: string, maxLineLength?: number, indent?: number): string;
Parameters
Parameter | Type | Description |
---|---|---|
text | string | |
maxLineLength | number | (Optional) |
indent | number | (Optional) |
Returns:
string