1.0.2 • Published 5 years ago

partially-masked-email-and-phone v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Welcome to partially-masked-email-and-phone šŸ‘‹

Version Documentation Maintenance

Module hides emails and phones partially from an input message

šŸ  Homepage

Install

npm install partially-masked-email-and-phone

Usage

const maskEmailsPhones = require('partially-masked-email-and-phone')

Example:

var email = 'exampleemail@domail.com';

console.log(maskEmailsPhones(email))

var phoneNumber = '62811203898';

console.log(maskEmailsPhones(phoneNumber))

The output variable will be equal to:

`ex**pl**ma**@domail.com

6281****898
`

Run tests

mocha tests/*.test.js

Author

šŸ‘¤ Ali Jaradat (AmJaradat01@gmail.com)

Show your support

Give a ā­ļø if this project helped you!

šŸ“ License

Copyright Ā© 2020 Ali Jaradat (AmJaradat01@gmail.com).

This project is MIT licensed.