1.0.3 • Published 3 years ago
@shaunmolloy/joi-postcode v1.0.3
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