0.1.0 • Published 5 years ago

mmdblookup v0.1.0

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

mmdblookup

Build Status Coverage Status

Originally a promise based spawn version of the mmdblookup utility, with an updated ip-to-country-lite default database from IP Geolocation by DB-IP, this is now a simple layer on top of node-maxmind.

const mmdblookup = require('mmdblookup');

mmdblookup('8.8.8.8').then(console.log);

// passing along the path
mmdblookup('8.8.8.8', ['continent']).then(console.log);

// initializing with another db
// i.e. https://db-ip.com/db/ip-to-country
const payedDB = require('mmdblookup').mddb('./full-ip-to-country-lite.mddb');
// or
const payedDB = mmdblookup.mddb('./full-ip-to-country-lite.mddb');
payedDB('8.8.8.8').then(console.log);

The .mmdb(mmdbFilePath[, options = {}]) accepts same options object accepted by maxmind.

0.1.0

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago