GeoIP
Fast search country by IP
Cli
[gap@localhost geoip]$ ./bin/geoip "131.221.27.2" "156.22.33.7" "100.11.1.1" "2.159.255.255" "5.39.127.249"ip = 131.221.27.2 code = PA country = Panamaip = 156.22.33.7 code = AU country = Australiaip = 100.11.1.1 code = US country = United Statesip = 2.159.255.255 code = IT country = Italyip = 5.39.127.249 code = LT country = Lithuania
Example
var Geo = ; var geoIP = GeoDatabase;try consoledirgeoIP; catch ex consoledirex;
[gap@localhost example]$ node example.js { code: 'IT', country: 'Italy' }