1.0.1 • Published 4 years ago

find-zipcode v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Zip Code Find

Find ZipCode by address, by using USPS service.

Usage

const zipcodes = require('find-zipcode');

Lookup By Address

This function gets 4 parameters:

  • address1: 767 Fifth Avenue
  • address2: not mandatory
  • city: New York
  • state: NY
const { getZipcodeByAddress } = require('find-zipcode');

async function find() {
    return getZipcodeByAddress('767 Fifth Avenue', undefined, 'New York', 'NY');
}

find().then((result) => console.log(result)).catch((e) => console.error(e));

The result:

{ zip5: '10153', zip4: '0023' }

TODO

Add support for more find options.