https://github.com/vast-engineering/vast-maxmind
Maxmind utility for use in node.js.
https://github.com/vast-engineering/vast-maxmind
Last synced: 27 days ago
JSON representation
Maxmind utility for use in node.js.
- Host: GitHub
- URL: https://github.com/vast-engineering/vast-maxmind
- Owner: vast-engineering
- Created: 2012-05-17T20:14:54.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2015-04-06T21:58:42.000Z (about 11 years ago)
- Last Synced: 2025-01-13T19:48:06.259Z (over 1 year ago)
- Language: C++
- Size: 165 KB
- Stars: 3
- Watchers: 39
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
vast-maxmind is a node wrapper for the maxmind GeoIP location service. It leverages the Maxmind C API which you should download and install from here before starting to use this module.
[http://www.maxmind.com/app/c][2]
This first iteration is limited functionality
- Supports the City data: [http://www.maxmind.com/app/geolitecity][2]
- Only supports lookup by IP address. Named hosts and more features will likely come later (time permitting)
Please check out the tests folder for the demo.
var VastMaxmind = require('../build/Release/vastmaxmind').VastMaxmind,
vmm = new VastMaxmind('/usr/local/share/GeoIP/GeoIPCity.dat'),
addr = "8.8.8.8";
var foo = vmm.location(addr, function(data) {
console.log(JSON.stringify(data) );
process.exit();
});
[1]: http://www.maxmind.com/app/c
[2]: http://www.maxmind.com/app/geolitecity