maxmind-loader

Get maxmind paid and lite geoip data updates

Usage no npm install needed!

<script type="module">
  import maxmindLoader from 'https://cdn.skypack.dev/maxmind-loader';
</script>

README

maxmind-loader NPM version Build Status Dependency Status

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
    }
})

License: MIT