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

    Function redactUrl

    • Replace the userinfo of a URL (https://user:secret@host/...) with ***, so a credential in a base URL (a mirror behind a login) never reaches an error message, a log or CI output. A value that doesn't parse is cut by text (see credentialsIn); a URL without userinfo is returned unchanged.

      Parameters

      • url: string

      Returns string