npm

mailcode

1.0.3 • Public • Published

mailcode

library to lookup zipcodes

zipcode data from https://simplemaps.com/data/us-zips

How to use

npm i mailcode

Currently, the only supported function is looking up a zipcode

import { getLocationFromZip } from 'mailcode'

getLocationFromZip accepts 5 numbers as a string or as numbers and will return:

{
    lat: number
    lng: number
    city: string
    stateID: string
    state: string
    population: number
    counties: string
    timezone: string
}

Package Sidebar

Install

npm i mailcode

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

5.49 MB

Total Files

4

Last publish

Collaborators

  • adomoshe