redactUrl
redactUrl(
url):string
Defined in: src/core/redact.ts:19
Redacts the secret-bearing parts of a URL for safe logging: userinfo
credentials become [redacted]@, and each query parameter value becomes
[redacted] while its key is preserved.
Example: https://bob:hunter2@api.example.com/auth?token=abc123&user=joe
→ https://[redacted]@api.example.com/auth?token=[redacted]&user=[redacted]
URLs with neither are returned unchanged.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
