@webdeveric/utils
    Preparing search index...

    Function redactCredentialsInURL

    • Replace the username and password in input, a URL, with mask.

      Parameters

      Returns string

      redactCredentialsInURL('https://user:pass@example.com'); // 'https://REDACTED:REDACTED@example.com/'