Show StreamConfig properties
Anonymizer configuration (same options as createAnonymizer)
policy
Partial<AnonymizationPolicy>
Policy override for the stream
Locale hint (e.g., 'de-DE')
Buffer configuration for sentence detectionShow SentenceBufferConfig properties
Characters of overlap between buffer flushes for NER context
Force flush when buffer reaches this size
Minimum buffer size before allowing flush
Enable low-latency mode (disables NER, reduces buffer sizes)
Custom regex for sentence boundary detection
Session ID for PII map persistence
Encryption key provider (required for session persistence)
Storage provider (required for session persistence)
Interval for periodic PII map saves (milliseconds)
Node.js Transform stream options
onChunk
(event: StreamChunkEvent) => void
Callback after each chunk is anonymized
onFinish
(event: StreamFinishEvent) => void
Callback when the stream ends