Redact | Node.js SDK
The Pangea Redact API helps developers limit the sprawl of sensitive information by performing redaction using defined rules.
Redact
redact(text: string, options: TextOptions): Promise<PangeaResponse<TextResult>>Redact sensitive information from provided text.
const response = await redact.redact(
"Jenny Jenny... 555-867-5309"
);
Redact structured
redactStructured(data: object, options: StructuredOptions): Promise<PangeaResponse<StructuredResult>>Redact sensitive information from structured data (e.g., JSON).
const response = await redact.redactStructured({
"phone": "555-867-5309"
});