@maschinenlesbar.org/regionalstatistik-cli
    Preparing search index...

    Function cutForMessage

    • text cut to max characters (default MAX_MESSAGE_VALUE_LENGTH), ending in "…" when cut — never inside a surrogate pair (cutText), so a message that holds it stays well-formed. Every value an own message quotes from a server answer (a Status.Type, a charset) goes through it, so a library caller's err.message stays bounded.

      Parameters

      • text: string
      • max: number = MAX_MESSAGE_VALUE_LENGTH

      Returns string