1.3.0 • Published 2 months ago

maxmind-geolite-mirror v1.3.0

Weekly downloads
322
License
MIT
Repository
github
Last release
2 months ago

Build Status Coverage Status Maintainability

maxmind-geolite-mirror

Mirror maxmind GeoIP version 2 databases from maxmind.com.

Install

npm install -g maxmind-geolite-mirror
mkdir -p /usr/local/share/GeoIP
/usr/local/bin/maxmind-geolite-mirror

The last command will download all the databases to the GeoIP share directory.

Configure

The MaxMind license key must be configured. It can be set by:

  1. editing config.js
  2. setting the environment variable MAXMIND_LICENSE_KEY

If neither is set, the script will emit an error.

Update databases

/usr/local/bin/maxmind-geolite-mirror

Set this to run once a week or so. Downloads happen only when the remote file is newer than the local version.

Custom path to store maxmind database

If access to /usr/local/share/GeoIP is unavailable, the following environment variable is available: MAXMIND_DB_DIR. E.g.

export MAXMIND_DB_DIR=/home/example/maxmind-db

Contributions

Contributions are welcome and appreciated. Please keep in mind the following:

  • there are no dependencies. That's on purpose.
  • test coverage is at 100%, help keep it that way.

Contributors

  • Carl Banbury
  • Tom Lee

NPM

NPM

1.3.0

2 months ago

1.2.0

10 months ago

1.1.8

2 years ago

1.1.7

3 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

5 years ago

1.1.1

5 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

7 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago