Have ideas to improve npm?Join in the discussion! »

    random-zipcode

    1.0.2 • Public • Published

    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.

    Install

    npm i random-zipcode

    DownloadsWeekly Downloads

    35

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • avatar