purgo
Version:
Zero-config PHI-scrubber for browser and Node.js
15 lines (14 loc) • 394 B
TypeScript
import { redact } from './redact';
import { PurgoOptions, PinoRedactorOptions } from './types';
/**
* Create a Pino redactor function
*/
export declare function pinoRedactor(options: PinoRedactorOptions): {
paths: string[];
censor: (value: any) => any;
};
/**
* Initialize Node.js patches
*/
export declare function initNodePatches(options?: PurgoOptions): void;
export { redact };