3 releases (breaking)

0.3.0 Jul 30, 2023
0.2.0 Jul 21, 2020
0.1.0 Jun 30, 2020

#11 in #ip-lookup

30 downloads per month

MIT license

2MB
236 lines

ip2country

provides loading of geo+whois+asn+country csv files (see: https://github.com/sapics/ip-location-db) and provides fast and lightweight ip lookup.

the file format hast to be in this format:

ip-range-start,ip-range-end,short-country-code

the lines need to be sorted ascending by the ip-range-start column.

Dependencies