Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

maxmind-loader

angleman52MIT0.5.12

Get maxmind paid and lite geoip data updates

maxmind, lite, subscription, paid, download

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