Get unlimited public & private packages + team-based management with npm Teams.Learn more »

is-valid-zipcode

1.0.3 • Public • Published

is-valid-zipcode

Build Latest Version Downloads per Month License

Check if a zip/postal code is valid

Install

$ npm install --save is-valid-zipcode

Usage

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

Install

npm i is-valid-zipcode

DownloadsWeekly Downloads

338

Version

1.0.3

License

MIT

Last publish

Collaborators

  • avatar