@adcp/sdk API Reference - v10.0.1
    Preparing search index...

    Function sanitizeStreamText

    • Escape control characters and bound the length of a registry-supplied string before it is embedded in an Error message or logged. Registry/proxy text is untrusted input — left raw it is a log-injection / terminal-spoofing vector (and the repo treats registry strings as untrusted everywhere else). Mirrors the JSON client's preview().

      Parameters

      • text: string
      • maxChars: number = ERROR_MESSAGE_MAX_CHARS

      Returns string