Creates a new Redactor instance.
Configuration options for the redactor
Redactor configuration options.
Optional
auditTrail?: booleanEnable audit trail for compliance.
Optional
cacheEnabled?: booleanCache redacted values for performance.
Optional
contextAware?: booleanEnable context-aware redaction.
Optional
deep?: booleanEnable deep object traversal.
Optional
enabled?: booleanEnable redaction.
Optional
excludeFields?: string[]Fields to never redact.
Optional
fields?: string[]Fields to always redact.
Optional
maxCacheSize?: numberMaximum cache size.
Optional
maxDepth?: numberMaximum traversal depth.
Optional
patterns?: RedactionPattern[]Custom redaction patterns.
Optional
preset?: RedactionPresetRedaction preset level.
Optional
tokenSalt?: stringTokenization salt for consistent tokens.
Export token map for recovery.
Get redaction statistics.
Import token map for consistency.
Redact sensitive data from any value.
Remove redaction pattern by name.
Clear cache and statistics.
Comprehensive PII and sensitive data redactor.
Redactor