Skip to main content
Stream-based anonymization for processing text chunk by chunk. Available in Node.js and Bun only.

Import


createAnonymizerStream()

Factory function that creates and initializes a streaming anonymizer.

Signature

Parameters

config
StreamConfig

Returns

Promise<AnonymizerStream> — a Node.js Transform stream.

Example


AnonymizerStream

A Node.js Transform stream that anonymizes text passing through it.

Methods

Example


SentenceBuffer

Accumulates text and flushes at sentence boundaries with overlap for NER context.

Constructor

Methods


Types

StreamChunkEvent

StreamFinishEvent

FlushResult