normalize-israeli-phone

1.0.1 • Public • Published

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"

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    1
  • 1.0.0
    1
  • 0.0.0
    0

Package Sidebar

Install

npm i normalize-israeli-phone

Weekly Downloads

1

Version

1.0.1

License

ISC

Last publish

Collaborators

  • tamirl