purgo
Version:
Zero-config PHI-scrubber for browser and Node.js
12 lines (11 loc) • 411 B
TypeScript
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;
/**
* Redact values in an object, preserving structure
*/
export declare function redact<T>(value: T, seen?: WeakSet<object>): T;
export { BUILT_IN_PATTERNS };