This is the pure Node API for reading country and city information from GeoLite2 database file based on node-maxmind-db
$ npm install --save node-geolite2
var geolite = require('node-geolite2');
geolite.init();
var location = geolite.getGeoDataSync("118.112.56.251");
console.log(location);
MIT © zj8487