Fray Electron
    Preparing search index...

    Function consoleColumns

    • Chooses a metadata layout for a given message width.

      Parameters

      • bodyWidth: number

        Available width for the message and metadata.

      • sourceWidth: number

        Width of the process indicator.

      • timeWidth: number

        Width of the widest timestamp.

      • inset: number

        Space between columns and the metadata mask.

      • titleWidth: number = 0

        Width of the title on one line; the message keeps this much room so it does not wrap early.

      Returns { mode: ConsoleColumnMode; reserve: number }

      The mode and reserved metadata width.