Light, fast, tree-based way to get cities by zipcode and location.
npm install zips
const zips = ;
U.S. postal codes only. For now.
If zipcode is found, returns a place object with zipcode, city, state, lat, long. Returns
null if zipcode not found.
Returns the closest place object to the specified coordinates.
zips doesn't load its data until the first time a function is called. The longest loading time I've seen is 100ms. After that, sub-millisecond returns can be expected.
I saw a lot of zip database modules on npm, but I was displeased with three aspects
I hope you're happy too.