1.0.3 • Published 3 years ago

@shaunmolloy/joi-postcode v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Joi Postcode

npm version

Validate postcodes with this Joi postcode extension.
Using ideal-postcodes/postcode behind the scenes.

Install

npm i @shaunmolloy/joi-postcode

Basic usage

import JoiPostcode from '@shaunmolloy/joi-postcode';

const schema = JoiPostcode.string();
schema.validate('SW1A 2AA');

License

MIT

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago