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
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.35latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.35
1.0.21
1.0.11
1.0.01

Package Sidebar

Install

npm i mailcode

Weekly Downloads

8

Version

1.0.3

License

ISC

Unpacked Size

5.49 MB

Total Files

4

Last publish

Collaborators

  • adomoshe