Skip to content

mock-end/random-zipcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

random-zipcode

Generate a random (U.S.) zip code.

MIT License

build:? coverage:?

Install

$ npm install --save random-zipcode 

Usage

var randomZip = require('random-zipcode');

// API
// - randomZip();
// - randomZip(plusFour);

randomZip();
// => '90210'

Can optionally specify that it ought to return a Zip+4:

randomZip(true);
// => '01035-1838'

Related

Contributing

Pull requests and stars are highly welcome.

For bugs and feature requests, please create an issue.

Releases

No releases published

Packages

No packages published