🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

china-mobile-phone-regexp

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

china-mobile-phone-regexp

[![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][codecov-image]][codecov-url] [![David deps][david-image]][david-url] [![Known Vulnerabilities][snyk-image]][snyk-url] [![npm download][download-image]][down

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
3
Created
Source

china-mobile-phone-regexp

NPM version build status Test coverage David deps Known Vulnerabilities npm download

The regular expressions for China mobile phones.

Install

$ npm i china-mobile-phone-regexp --save

Usage

const phone = require('china-mobile-phone-regexp');
// Is phone number?
console.log(phone.is('13800138000'));

// Is CHINA_MOBILE phone number?
console.log(phone.is('13800138000', phone.CHINA_MOBILE));

// Is CHINA_UNICOM phone number?
console.log(phone.is('13800138000', phone.CHINA_UNICOM));

// Is CHINA_TELECOM phone number?
console.log(phone.is('13800138000', phone.CHINA_TELECOM));

Questions & Suggestions

Please open an issue here.

License

MIT

Keywords

China-mobile-phones

FAQs

Package last updated on 18 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts