1.0.2 • Published 4 months ago

validity-ukpostcode v1.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
4 months ago

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 ] }
      }
    })