@shaunmolloy/joi-postcode
v1.0.3
Published
Validate postcodes with this Joi postcode extension
Downloads
1
Maintainers
Readme
Joi Postcode
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