validity-telephone-number

1.1.4 • Public • Published

Phone Number Validator

A validity style validator for ensuring phone numbers are entered correctly. Built on the functionality of awesome-phonenumber

Installation

npm install validity-telephone-number --save

yarn add validity-telephone-number

Usage

Below is example usage of the telephone number validator:

const phoneNumber = require('validity-telephone-number'),
schemata = require('schemata')

var schema = schemata (
  {
    telephone:
    {
      type: String
      , validators: [ phoneNumber ]
    }
  }
)

Dependencies (1)

Dev Dependencies (5)

Package Sidebar

Install

npm i validity-telephone-number

Weekly Downloads

1

Version

1.1.4

License

ISC

Unpacked Size

2.1 kB

Total Files

3

Last publish

Collaborators

  • ndumato