node-geoip-native
node-geoip-native copied to clipboard
A native, fast, JavaScript geoip lookup for NodeJS.
I noticed a bug in my app for IP "207.47.0.226". It was not showing up as US, even though the CSV says it should have. I rewrote the binary search...
Hi and thank you for your great work!
- assign the result to a variable (`res`) - format as JS - use ES6
Hi, I've made some more progressive enhancements within my fork of 'node-geoip-native'. The basic ideas: - generating JS code from CSV file in 'build phase' or manual - generated sources...
Lookup for '127.0.0.1' returns 'Japan' :)
Unless I'm missing something I think I should be able to look up an IP taken from the CSV and get the same country back. For example these lines are...
``` javascript var geoip = require("geoip-native"); var ip = "123.123.123.123"; geoip.lookup(ip); console.log("country: " + ip.name + " / " + ip.code); ``` Should be more like: ``` javascript var geoip...
npm install geoip-native npm http GET https://registry.npmjs.org/geoip-native npm http 304 https://registry.npmjs.org/geoip-native npm http GET https://registry.npmjs.org/geoip-native/-/geoip-native-0.0.8.tgz npm http 404 https://registry.npmjs.org/geoip-native/-/geoip-native-0.0.8.tgz npm ERR! fetch failed https://registry.npmjs.org/geoip-native/-/geoip-native-0.0.8.tgz npm ERR! Error: 404 Not Found...