Module hides emails and phones from an input message
npm install mask-email-phoneMask email and phone
====
Modules "hides" emails and phones.
Example:
``javascript
const maskEmailsPhones = require('mask-email-phone')
const input =
hey dude, maybe you can contact me later by email or phone.
here is my
company email: john.t@example.com
personal email: my.email@gmail.com
My phone numbers are: +62811203898, 0818702203, +62217458592
Phone numbers:
- +62811203898
- 0818702203
- +62217458592
Fake telephone: 088
const output = maskEmailsPhones(input)
console.log(output)
`
The output variable will be equal to:
`javascript
/ Output /
hey dude, maybe you can contact me later by email or phone.
here is my
company email: jo*e.com
personal email: my*l.com
My phone numbers are: +628, 083, +62*2
Phone numbers:
- +62**8
- 08*3
- +62**2
Fake telephone: 088
``