0.0.6 • Published 5 years ago

parse-phone v0.0.6

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

parse-phone

NPM Version NPM Downloads Build Status Test Coverage

phone parser for international dialing code parsing from full string

Installation

npm install parse-phone

Get Started

const phoneStr = "+86188888888"
const parsePhone = require('parse-phone')
const recipient = parsePhone(phoneStr)

{ success: true,
  dialCode: '+86',
  full: '+86188888888',
  phone: '188888888' }

parsePhone('+18096958000')

{ success: true,
  dialCode: '+1809',
  full: '+18096958000',
  phone: '6958000' }
0.0.6

5 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago