Nomnom Pumpernickle Muffins

    china-mobile-phone-regexp

    1.0.0 • Public • Published

    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

    Install

    npm i china-mobile-phone-regexp

    DownloadsWeekly Downloads

    31

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    6.98 kB

    Total Files

    5

    Last publish

    Collaborators

    • dead_horse
    • fengmk2
    • popomore