maxmind-loader
v0.5.12
Published
Get maxmind paid and lite geoip data updates
Downloads
30
Readme
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: 'MAXMIND_LICENSE', // for paid data
day: 'tuesday', // day of the week to load for paid subscription
edition: 132, // paid subscription edition
dest: './' // destination_folder_or_filename
}, callback);
Examples
var maxloader = require('maxmind-loader');
maxloader(function() {
console.log('GeoLiteCity.dat.gz loaded');
});
// paid subscription
var options = {license: 'MAXMIND_LICENSE'};
maxloader(options, function(error, response) {
if (error) {
console.log(error); // error encountered
} else {
console.log(response.headers); // load successful
}
})