geoip2lookup

Designed to be a lookup tool for cli. It should be working on all major platforms and maxmind databases. By default it does have default database locations but you might use --geodb <mmdb_file> to put different location.

Usage no npm install needed!

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

README

geoip2lookup tool

Designed to be a lookup tool for cli. It should be working on all major platforms and maxmind databases. By default it does have default database locations but you might use --geodb <mmdb_file> to put different location.

Install

npm i -g geoip2lookup

Usage

After the installation, you should be able to lookup with geoip2lookup <ip/host>