UNPKG

purgo

Version:

Zero-config PHI-scrubber for browser and Node.js

16 lines (15 loc) 493 B
import { PurgoOptions } from './types'; declare const BUILT_IN_PATTERNS: Record<string, RegExp>; /** * Initialize the redaction engine with patterns and censor function */ export declare function initRedactionEngine(options?: PurgoOptions): void; /** * Apply redaction to a string value */ export declare function redactString(value: string): string; /** * Redact values in an object, preserving structure */ export declare function redact<T>(value: T): T; export { BUILT_IN_PATTERNS };