Creates a new Redactor instance.
Configuration options for the redactor
Redactor configuration options.
OptionalauditTrail?: booleanEnable audit trail for compliance.
OptionalcacheEnabled?: booleanCache redacted values for performance.
OptionalcontextAware?: booleanEnable context-aware redaction.
Optionaldeep?: booleanEnable deep object traversal.
Optionalenabled?: booleanEnable redaction.
OptionalexcludeFields?: string[]Fields to never redact.
Optionalfields?: string[]Fields to always redact.
OptionalmaxCacheSize?: numberMaximum cache size.
OptionalmaxDepth?: numberMaximum traversal depth.
Optionalpatterns?: RedactionPattern[]Custom redaction patterns.
Optionalpreset?: RedactionPresetRedaction preset level.
OptionaltokenSalt?: 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