is-mobile-number

My top-notch module

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
is-mobile-number
411.0.35 years ago5 years agoMinified + gzip package size for is-mobile-number in KB

Readme

is-mobile-number
Validate mobile numbers for a country.

Install

$ npm install is-mobile-number

Usage

const isMobileNumber = require('is-mobile-number');

isMobileNumber('0400123456', 'AU');
//=> true

isMobileNumber('123', 'AU');
//=> false

API

isMobileNumber(mobileNumber, countryCode)

mobileNumber

Type: string
Mobile number you want to validate
Example: 0400123456

countryCode

Type: string
Country code
Example: AU

License

MIT © jxom