npm.io
1.0.2 • Published 4 years ago

encrypt-phone-numbers

Licence
ISC
Version
1.0.2
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
2

encrypt-phone-numbers

In order to encrypt any phone number, you need to call the function encryptNumber and pass three arguments: the phone number (as string or array of strings), the number of digits you want to hide and the symbol you want to use to hide the numbers

encryptNumber('+1-541-754-3010', 5, 'X')
// Result :  +1-541-75X-XXXX

Installation

  • npm install 'encrypt-phone-number'
  • In your JS file: const encryptedNumber = require ('encrypt-phone-number')

Keywords