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

    Function redactSecrets

    • text with every occurrence of each secret (a form a server echoes a credential in, which has no @ to anchor on) replaced by ***. Secrets shorter than 4 characters are skipped: they are not credentials, and replacing them would garble the rest of the text.

      Parameters

      • text: string
      • secrets: readonly string[]

      Returns string