geolite2.mmdb

Maxmind's GeoLite2 Free Databases

Usage no npm install needed!

<script type="module">
  import geolite2Mmdb from 'https://cdn.skypack.dev/geolite2.mmdb';
</script>

README

geolite2.mmdb

npm version npm download Build Status

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