The installation instructions for GeoIP-lite involves copying data files to a directory in the npm package. Either manually or with the command
npm run-script updatedb (I’m thinking something could be hacked with the package.json.scripts.start property, but the frequent rebuilds might keep blowing the data away…)
The package works without the data, but it only seems to provide country-level granularity. I suppose the relatively large storage/RAM requirements makes it infeasible anyway, but it might be a (commercial) feature to think about for the future.
Also, this question reminded me: I would love to be able to enter
npm install geoip-lite from HyperDev instead of having to modify the package.json.
It was annoying to constantly look up packages’ latest version numbers, but I guess I could just use version