@biorate/masquerade
v1.156.2
Published
Masquerade provides functionality to redact sensitive info
Readme
Masquerade
Masquerade provides functionality to redact sensitive info
Example:
import { Masquerade } from '@biorate/masquerade';
Masquerade.configure({ maskJSON2: { emailFields: ['email'] } });
const result = Masquerade.processJSON({ email: '[email protected]' });
console.log(result); // { "email": "tes*@*******om" }import { Masquerade } from '@biorate/masquerade';
Masquerade.use(EmailMask).use(PhoneMask).use(CardMask);
const result = Masquerade.processString(
`[email protected], +79231231224, 4111 1111 1111 1111 (Visa), 5500-0000-0000-0004 (MC)`,
);
console.log(result); // u***@**********m, +*******1224, **** **** **** 1111 (Visa), ****-****-****-0004 (MC)Learn
- Documentation can be found here - docs.
Release History
See the CHANGELOG
License
Copyright (c) 2021-present Leonid Levkin (llevkin)
