Unofficial IP2Location Node.js module
$ npm install ip2loc
var ip2loc = new (require('ip2loc'))({
paths : {
ipv4 : <path to IPv4 database>,
ipv6 : <path to IPv6 database>
},
fakeIps : null // array of fake ips
});
console.log(ip2loc.query(<ip>));
You can get sample database on http://www.ip2location.com/developers/nodejs
The MIT License