JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12
  • Score
    100M100P100Q52550F
  • License ISC

Nodejs plugin to validate mobilenumber

Package Exports

  • validate-country-mobile
  • validate-country-mobile/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (validate-country-mobile) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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',
        phone: '1',
        suggested: true,
        accepetedLength: [ 10 ]
      }
    }

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

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

Support

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