isphnumber
v1.0.4
Published
Returns true if the given value is a Philippine mobile number format
Downloads
7
Readme
isphnumber
Returns true if the given value is a Philippine mobile number format -Add latest phone code in the Philippines (DITO,GLOBE,TM)
Install
Install with npm:
$ npm install --save isphnumber
Usage
Works with strings or numbers.
const isphnum = require('isphnumber');
console.log(isphnum(639123456789)); //=> true
console.log(isphnum('639123456789')); //=> true
console.log(isphnum('09123456789')); //=> true
console.log(isphnum('+639123456789')); //=> true
console.log(isphnum('+63 912 345 678913')); //=> false
console.log(isphnum('63 912 345 678932')); //=> false