is-valid-zip

0.0.5 • Public • Published

is-valid-zip

Validates U.S. zip code in JavaScript

Install

npm install is-valid-zip

Usage

var isValidZip = require('is-valid-zip');
 
isValidZip(11743) // true
isValidZip('11743-6961') // true
isValidZip('11743-6') // false
isValidZip(11743344) // false
isValidZip(144) // false

License

MIT

Package Sidebar

Install

npm i is-valid-zip

Weekly Downloads

82

Version

0.0.5

License

MIT

Unpacked Size

3.38 kB

Total Files

8

Last publish

Collaborators

  • miguelmota