maxmind-loader

Get maxmind paid and lite geoip data updates
Install 🔨
npm install maxmind-loader
Usage 🔧
var maxloader = require('maxmind-loader');
maxloader(callback);
maxloader({
license: undefined,
day: 'tuesday',
edition: 132,
extract: true,
dest: '/tmp/'
}, function (err, filepath) {
if (err) {
console.log(err);
} else {
console.log(filepath, 'loaded');
}
});
Free Geo Data Example 🔧
var maxmind = require('maxmind')
, maxloader = require('maxmind-loader');
maxloader(function(error, filepath) {
maxmind.init(filepath);
});
Paid Geo Data Example 🔧
var options = { license: 'MAXMIND_LICENSE' };
maxloader(options, function(err, filepath) {
if (err) {
console.log(err);
} else {
maxmind.init(filepath, { memoryCache: true });
}
})
License: MIT 🔓
Dependencies:

Development Dependencies:
