Obscura.Anonymizer (obscura v0.1.0)

Copy Markdown View Source

String anonymizer facade for validated operators.

Operator configuration is validated before replacements begin. Invalid configuration returns {:error, %Obscura.Anonymizer.Error{}} without a partially anonymized result.

Summary

Functions

Applies configured operators to analyzer results or fixture-compatible spans.

Functions

anonymize(text, spans, opts \\ [])

@spec anonymize(String.t(), [map() | struct()], keyword()) ::
  {:ok, Obscura.Anonymizer.Result.t()} | {:error, term()}

Applies configured operators to analyzer results or fixture-compatible spans.