@e9x/ipi-databases
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-monthly.2024.5 • Public • Published

ipi-databases

npm version

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

/@e9x/ipi-databases/

    Package Sidebar

    Install

    npm i @e9x/ipi-databases

    Weekly Downloads

    8

    Version

    1.0.0-monthly.2024.5

    License

    ISC

    Unpacked Size

    228 MB

    Total Files

    6

    Last publish

    Collaborators

    • e9x