Home / Function/ redactSensitive() — dead-code-hunter Function Reference

redactSensitive() — dead-code-hunter Function Reference

Architecture documentation for the redactSensitive() function in index.ts from the dead-code-hunter codebase.

Entity Profile

Dependency Diagram

graph TD
  c44865c2_fc6d_0cfb_72be_2814706bb941["redactSensitive()"]
  1916269f_4df6_c8ce_0c1a_a8a66a4fb245["index.ts"]
  c44865c2_fc6d_0cfb_72be_2814706bb941 -->|defined in| 1916269f_4df6_c8ce_0c1a_a8a66a4fb245
  0c3136ed_f7b1_d5d1_589e_7b15515e6598["run()"]
  0c3136ed_f7b1_d5d1_589e_7b15515e6598 -->|calls| c44865c2_fc6d_0cfb_72be_2814706bb941
  style c44865c2_fc6d_0cfb_72be_2814706bb941 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/index.ts lines 68–82

function redactSensitive(obj: Record<string, unknown> | null | undefined): Record<string, unknown> | null {
  if (!obj || typeof obj !== 'object') {
    return null;
  }

  const result: Record<string, unknown> = {};
  for (const [key, value] of Object.entries(obj)) {
    if (SENSITIVE_KEYS.has(key.toLowerCase())) {
      result[key] = '[REDACTED]';
    } else {
      result[key] = value;
    }
  }
  return result;
}

Domain

Subdomains

Defined In

Called By

Frequently Asked Questions

What does redactSensitive() do?
redactSensitive() is a function in the dead-code-hunter codebase, defined in src/index.ts.
Where is redactSensitive() defined?
redactSensitive() is defined in src/index.ts at line 68.
What calls redactSensitive()?
redactSensitive() is called by 1 function(s): run.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free