validity-telephone-number
v1.1.4
Published
A validity style validator for validating telephone numbers
Downloads
35
Maintainers
Readme
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 ]
}
}
)