featherbit UI
    Preparing search index...

    Function redactSecrets

    • Replaces secrets with REDACTED. literals are exact strings to remove wherever they appear (the user's own API key and MCP token); entries shorter than 8 characters are ignored to avoid shredding prose.

      Parameters

      • text: string
      • literals: readonly string[] = []

      Returns RedactResult