validity-ukpostcode
v1.0.2
Published
Validity style validator to ensure a UK postcode
Downloads
4
Readme
validity-ukpostcode
Validity style validator to ensure a UK postcode
Installation
npm install validity-ukpostcode --save
Usage
Below is a simple example for usage with schemata and save:
var postcode = require('validity-ukpostcode')
, schemata = require('schemata')
var schema = schemata(
{ width:
{ type: String
, validators: { [ postcode ] }
}
})