is-e164-phone-number

Check if a string is a valid E. 164 phone number

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
is-e164-phone-number
111.0.06 years ago6 years agoMinified + gzip package size for is-e164-phone-number in KB

Readme

is-e164-phone-number Build Status
Check if a string is a valid E. 164 phone number

Install

$ npm install --save is-e164-phone-number

Usage

const isE164PhoneNumber = require('is-e164-phone-number');

isE164PhoneNumber('+14155552671');
//=> true

isE164PhoneNumber('+04155552671');
//=> false

API

isE164PhoneNumber(input)

input

Type: string
Phone number to test

License

MIT © Sam Verschueren