GeoIP binding for nodejs
Get geolocation information based on domain or IP address.
Pure javascript implementation
If you are looking for a pure javascript implementation, the node-geoip
maybe your choice.
###Technical Architecture
###Memory leak issue As up to the version 0.4.7 (commit 22dadd98646f75318412b54b3de90cc079d34b1d), there will be some memory leak when new a object from GeoIP class.
Here is the report, I'll update it frequently.
Fortunately, the number of leaked bytes is not huge, and you wont new a object very offen.
If you are willing to fix this but, please fork this project.
###Need support special database? Corrently, this package supports the most common databases from MaxMind.
But, it still a lot of special databases out there.
Since I am not a user of any product/service of maxmind, if you require this pacakge to support special db, please make sure you can delivery the testing db and the ip address/domain that can be used to against the db.
##Installation
[sudo] npm install geoip [-g]
[sudo] npm install geoip@0.4.5 [-g]
[sudo] npm install geoip@0.4.4 [-g]
From v0.4.0, geoip need nodejs >= 0.4.0, if you want to use it on old nodejs, you can:
npm install geoip@0.3.4-1
##Usage
See usage doc.