is-valid-zipcode

Check if a zip/postal code is valid.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
is-valid-zipcode
101.0.36 years ago8 years agoMinified + gzip package size for is-valid-zipcode in KB

Readme

is-valid-zipcode
Build1 Latest Version1 Downloads per Month1 License
Check if a zip/postal code is valid

Install

```sh $ npm install --save is-valid-zipcode ```

Usage

```js var isValidZipcode = require('is-valid-zipcode'); isValidZipcode('2000-000', 'PT'); // => true isValidZipcode('7521785-952-520', 'PT'); //=> false ``` By default, the country is United States.

License

MIT © Henrique Dias