email-concealer
v1.0.3
Published
package to conceal the emails in dump files
Downloads
3
Readme
Email-Concealer
This package conceals the email in a string with example.org, this can be used to conceal the emails in sql dumps.
Inspired by: https://github.com/spatie/email-concealer
It removes the domain and append the local part with example.org. Concealer can idenfity if there are more than one same local part than it will increment the count and append it.
Installation
npm install email-concealer --save
Usage
let string = 'hi [email protected]';
const concealer = new Concealer();
concealer.conceal(string);
// hi [email protected]
string = 'hi [email protected] and [email protected]';
concealer.conceal(string);
// hi [email protected] and [email protected]
Using cli
You can use the email-concealer command line interface (cli)
Commands:
email-concealer --help
email-concealer --version
email-concealer conceal --file [filepath] --domain [domain]
Example:
email-concealer conceal --file ./users.sql --domain example.org
Testing
npm test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING and CODE OF CONDUCT for details.
License
The MIT License (MIT). Please see License File for more information.