sapics/geoip-country

fs.readFileSync is not a function

Closed this issue · 1 comments

Hi, when I try to do geoip.lookup(ip), I get the error fs.readFileSync is not a function. I'm trying to run the code on the client, on a browser. Is there a way to do this? Thanks!

Sorry, this is not possible to work on a browser.
And the ip database is about 5MB, it would be bad for client to download.
ip2c.org looks good for browser!