geoip-lite / node-geoip

Native NodeJS implementation of MaxMind's GeoIP API -- works in node 0.6.3 and above, ask me about other versions
https://npmjs.org/package/geoip-lite
Other
2.3k stars 353 forks source link

[Request] What to do if we don't need the 'city' database ? #268

Open BenStirrup opened 1 week ago

BenStirrup commented 1 week ago

Hello all,

Our use case only involves the use of the country data from an ip. Example :

const country = lookup(ip).country

We don't even need to query or download the cities database.

@bluesmoon would there be a good way to go about it ?

bluesmoon commented 1 week ago

honestly, I'm a bit rusty on this. I think it should be possible to run without a city database, I just don't remember how.