obfuscator-email

📦🚀 Package to Obfuscates email addresses with *'s.

MIT License

Downloads
1.7K
Stars
5
Committers
2

About

Obfuscates email addresses with *'s.

Purpose?

This module will to obfuscate email addresses with *'s.

Example
email: onildo.aguiar@gmail.com
obfuscateEmail: on*****@gmail.com

Usage

Default values

const obfuscatorEmail = require('obfuscator-email');

// Default values
const obfuscateEmail = obfuscatorEmail('[email protected]');

With options

const obfuscatorEmail = require('obfuscator-email');

// With options
const options = { numberOfAsteriks: 3, numberOfCharacters: 3, withDomainObfuscated: true};
const obfuscateEmail = obfuscatorEmail('[email protected]', options);

License

This project is licensed under the MIT License - see the LICENSE.md file for details