is-mobile-number

1.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i is-mobile-number

Weekly Downloads

358

Version

1.0.3

License

MIT

Last publish

Collaborators

  • jmoxey