1.0.1 • Published 7 years ago

normalize-israeli-phone v1.0.1

Weekly downloads
6
License
ISC
Repository
github
Last release
7 years ago

normalize-israeli-phone

This package removes all decorations from an Israeli phone number to keep is in a consistant format

Examples

Removes international prefix

+972521234567 --> 0521234567

Remove Irrelevant characters

(052) 1234567 --> 0521234567

How to use

the module is a function that you invoke with the desired phone number

In code

in ES5

var normalizeIsraeliPhone = require("normalize-israeli-phone");

var normalized = normalizeIsraeliPhone("+97252-1234567"); 
// normalized = "0521234567"