1.0.4 • Published 1 year ago

isphnumber v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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
1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago