Utility TypeScript @ 2.0.0-beta
    Preparing search index...

    Function softWrapText

    • Takes an input string and inserts \n to soft wrap text within the given width.

      Parameters

      • text: string

        Text to wrap.

      • maxWidth: number = 80

        Optional. Max number of characters per line.

      Returns string

      Wrapped text.

      0.1.0