@moneytree/mask-pii
v0.1.0
Published
Mask PII in strings
Downloads
3
Readme
mask-pii
JavaScript / Node.js module for masking PII in strings.
Currently only e-mail address and domain name masking are supported. Pull requests to add masking for other PII very welcome.
We maintain 100% test coverage.
Installation
npm install @moneytree/mask-pii --save
Usage
const { string, email, domain } = require('mask-pii');
string('foobar', '#'); // f########r
domain('sub.example.com'); // s********e.com
email('[email protected]'); // b********r@e********e.com
License
MIT