• Performs word wrap. Input is assumed to be a series of paragraphs separated by a newline. Output is an array of formatted lines.

    Contains specialized support for lists, ESDoc directives ans ANSI escape codes.

    Parameters

    • text: string
    • Optionalwidth: number

    Returns string[]