geolite2.mmdb

Maxmind's GeoLite2 Free Databases

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
geolite2.mmdb
0121.0.05 years ago5 years agoMinified + gzip package size for geolite2.mmdb in KB

Readme

geolite2.mmdb
!npm versionnpm-imagenpm-url !npm downloaddownloads-imagenpm-url !Build Statustravis-imagetravis-url
Maxmind's GeoLite2 Free Databases

This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com.

Install

npm install geolite2.mmdb

Usage

const geolite2 = require('geolite2.mmdb');
const maxmind = require('maxmind');

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

License

MIT