0.1.0 • Published 4 years ago

@moneytree/mask-pii v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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('bob.foobar@example.com'); // b********r@e********e.com

License

MIT