Polyman Documentation - v3.1.0
    Preparing search index...

    Function capContent

    • Cuts content to at most capBytes UTF-8 bytes. Keeps the first 2 KB and the end, with [... <n> bytes cut ...] between them. Never splits a character.

      Parameters

      • content: string
      • capBytes: number

      Returns string