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<BaseResponse>>Redact sensitive information from provided text
const response = await redact.redact("Jenny Jenny... 415-867-5309");
Redact structured
redactStructured(data: object, options: StructuredOptions): Promise<PangeaResponse<StructuredResponse>>Redact sensitive information from structured data (e.g., JSON)
const data = { "phone": "415-867-5309" };
const response = await redact.redactStructured(data);