1.1.1 • Published 2 years ago

@clocklimited/validity-ukpostcode v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

validity-ukpostcode

Validity style validator to ensure a UK postcode

Installation

npm install @clocklimited/validity-ukpostcode --save

Usage

Below is a simple example for usage with schemata and save:

var postcode = require('@clocklimited/validity-ukpostcode')
  , schemata = require('schemata')

var schema = schemata(
    { width:
      { type: String
      , validators: { [ postcode ] }
      }
    })