1.5.0 • Published 9 months ago

validate-country-mobile v1.5.0

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

Description

npm package for validate country mobile.

Installation

`npm i validate-country-mobile --save`
    
let vcm = require('validate-country-mobile');

How to use

Let's see about js code:

    let vcm = require('validate-country-mobile');
    
    let _numberinfo=vcm.validatenumber("1","9876543210");

    console.log(_numberinfo); // returns as follows
    {
      status: true,
      info: {
        code: 'CA',
        label: 'Canada',
        accepetedLength: [ 10 ],
        countrycode: '1',
        nationalnumber: '9876543210',
        devicetype: 'UNKNOWN'
      }
    }

    let _numberinfo=vcm.validatesinglenumber("+0019876543210");

    console.log(_numberinfo); // returns as follows
    {
      status: true,
      info: {
        code: 'CA',
        label: 'Canada',
        accepetedLength: [ 10 ],
        countrycode: '1',
        nationalnumber: '9876543210',
        devicetype: 'UNKNOWN'
      }
    }
    let _countryinfo=vcm.getCountryInfo("1");

    console.log(_countryinfo); // returns as follows
    {
      code: 'CA',
      label: 'Canada',
      maxlength: 10,
      countrycode: '1'
    }

    let _countryinfo=vcm.getCountryInfoISO("US");

    console.log(_countryinfo); // returns as follows
    {
      code: 'US',
      label: 'United States',
      maxlength: 10,
      countrycode: '1'
    }

I am most welcome to have your feedback on the number and updates if i am missing,

feel free to get in touch and update us the number so the respective changes get updated.

Support

Happy to add more, and need any updates, do get in touch on my telegram over @chigovera

1.5.0

9 months ago

1.4.0

10 months ago

1.3.0

10 months ago

1.2.0

10 months ago

1.1.0

10 months ago

1.0.0

10 months ago

0.9.0

10 months ago

0.8.0

10 months ago

0.7.0

10 months ago

0.6.0

11 months ago

0.5.0

11 months ago

0.4.0

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago