simple-redact
Version:
A simple redact lib
10 lines (9 loc) • 374 B
TypeScript
import { ConfigRedact, RedactMethod } from './typings/ConfigRedact';
export default class Redacter {
private redactMethod;
constructor(redactMethod?: RedactMethod);
private applyRedactMethod;
private internalRedact;
simpleRedact: (obj: Record<string, any>, config: string[]) => any;
redact: (obj: Record<string, any>, config: ConfigRedact) => any;
}