Cotal TypeScript packages
    Preparing search index...

    Function stderrLines

    • The lines of a ✗ failure or ↳ hint on stderr, wrapped at spaces to the terminal, each continuation line under the text. Its control characters are shown as escapes, as a report shows them (see oneLine), because the text can quote a file or an argument. Under a locale that is not UTF-8 it is written as plain writes it: ! for the failure mark and the punctuation in ASCII. A whole text, such as a remedy that is one command, is never broken: one wider than the line runs past it. paint colors only when stderr is colored.

      Parameters

      • prefix: string
      • text: string
      • paint: (s: string) => string
      • whole: boolean = false

      Returns string[]