1.0.1 • Published 4 years ago

email_string_tools v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Email String Tools

this is a small project i have been working on for people working with emails its only two functions right now wich are maskEmail and validateEmail

both functions are fairly simple to instal and use let me start with the first on

Mask Emails

this function helps you locate and mask any email in any text big or small

console.log(emailTools.maskEmails('this email will be masked testEmail@gmail.com'));
//returns this email will be masked te*****il@gm****com

there doesnt even need an email for the function to work

console.log(emailTools.maskEmails('There is no email in this text'));
//returns There is no email in this text

gg

Validate Email

this function will return a boolean of true when given an email

console.log(emailTools.validateEmail('testEmail@gmail.com'));
//returns True

note: the entire text needs to be the email wich means it wont identify spaces or anything like that so be carefull

Instalation

just type npm i email_string_tools in the terminal

License

MIT

Thank you for checking out my project :)

1.0.1

4 years ago

1.0.0

4 years ago