is-e164-phone-number
v1.0.0
Published
Check if a string is a valid E. 164 phone number
Downloads
3,513
Maintainers
Readme
is-e164-phone-number
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