Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

mask-email-phone

dimitardanailov1.5kMIT1.0.2

Module hides emails and phones from an input message

mask, mask-emails, mask-phones, mask-emails-phones, hide, hide-emails, hide-phones, hide-emails-phones, npm, javascript

readme

Mask email and phone

Modules "hides" emails and phones.

Example:


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:


/* 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: +62********8, 08*******3, +62********2

Phone numbers: 
- +62********8
- 08*******3
- +62********2

Fake telephone: 088
`

changelog

1.0.2 - 2019-07-02

Changed

package.json has information about repository.

1.0.1 - 2019-07-02

Changed

package.json has keyboards and author info.

1.0.0 - 2019-07-01

Added

Module hides emails and phones