Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shaunmolloy/joi-postcode
Joi postcode extension using ideal-postcodes/postcode to validate
https://github.com/shaunmolloy/joi-postcode
jest joi postcode
Last synced: 10 days ago
JSON representation
Joi postcode extension using ideal-postcodes/postcode to validate
- Host: GitHub
- URL: https://github.com/shaunmolloy/joi-postcode
- Owner: shaunmolloy
- Created: 2021-04-24T12:45:13.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-05-11T09:47:04.000Z (over 3 years ago)
- Last Synced: 2024-11-24T17:31:05.799Z (28 days ago)
- Topics: jest, joi, postcode
- Language: JavaScript
- Homepage:
- Size: 142 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Joi Postcode
![npm version](https://img.shields.io/npm/v/@shaunmolloy/joi-postcode)
Validate postcodes with this Joi postcode extension.
Using [ideal-postcodes/postcode](https://github.com/ideal-postcodes/postcode) behind the scenes.### Install
```sh
npm i @shaunmolloy/joi-postcode
```### Basic usage
```js
import JoiPostcode from '@shaunmolloy/joi-postcode';const schema = JoiPostcode.string();
schema.validate('SW1A 2AA');
```### License
MIT