@e9x/ipi-databases
v1.0.0-monthly.2024.5
Published
Databases for an IP information package.
Downloads
12
Readme
ipi-databases
This is a part of IPI.
This package provides a compiled IPtoASN database and a free IP2Location database.
This site or product includes IP2Location LITE data available from https://lite.ip2location.com.
Compiling the ASN database
This will download data from IPtoASN and compile a SQLite3 database.
$ npm run ip2asn
Downloading the IP2Location database
- You will need your download token from here.
- Set the environment variable
IP2LOCATION_TOKEN
to this token.
$ npm run ip2location
Verifying databases
This will make sure the IPtoASN database can be successfully queried and the IP2Location database returns correct data.
$ npm run prepublishOnly