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.
This will download data from IPtoASN and compile a SQLite3 database.
$ npm run ip2asn
- You will need your download token from here.
- Set the environment variable
IP2LOCATION_TOKEN
to this token.
$ npm run ip2location
This will make sure the IPtoASN database can be successfully queried and the IP2Location database returns correct data.
$ npm run prepublishOnly