Need private packages and team management tools?Check out npm Teams »

geolite2

3.0.0 • Public • Published

node-geolite2 Build Status

Maxmind's GeoLite2 Free Databases download helper.

Usage

IMPORTANT You must setup MAXMIND_LICENSE_KEY environment variable be able to download databases. To do so, go to the https://www.maxmind.com/en/geolite2/signup, create a free account and generate new license key.

var geolite2 = require('geolite2');
var maxmind = require('maxmind');
 
var lookup = maxmind.openSync(geolite2.paths.city); // or geolite2.paths.country or geolite2.paths.asn
var city = lookup.get('66.6.44.4');

License

Creative Commons Attribution-ShareAlike 4.0 International License

Install

npm i geolite2

DownloadsWeekly Downloads

7,309

Version

3.0.0

License

MIT

Unpacked Size

24.4 kB

Total Files

10

Last publish

Collaborators

  • avatar