How to use the maxmind.getCountry function in maxmind

To help you get started, we’ve selected a few maxmind examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github runk / node-maxmind / examples / country.js View on Github external
var maxmind = require('maxmind');
maxmind.init(__dirname + '/GeoIP.dat');

console.log('Country:', maxmind.getCountry('66.6.44.4'));

maxmind

IP lookup using Maxmind databases

MIT
Latest version published 5 months ago

Package Health Score

79 / 100
Full package analysis