GeoIP2 CLI
Table of Contents
Description
Code and command-line utils for download and convert geoip2 maxmind mmdb
Command line
npm
Globally via npm install --global geoip2-cli
Running on-demand:
npx geoip2-cli [options]
Examples
npx geoip2-cli --help
'usage: geoip2-cli [options]', '', 'options:', ' --download Download [false]', ' --downloadPath Path to download [./geoip2-cli]', ' --licenseKey Your license key [error]', ' --editions Editions: city, country, asn [city]', ' --date Database date version [empty]', '', ' --convert Convert [false]', ' --mmdbPath Path to .mmdb [./geoip2-cli/GeoLite2-City.mmdb]', ' --jsonPath Path to .json [mmdbPath + .json]', '', ' --help Print this list and exit', ' --version Print the version and exit.', '', 'env:', ' GEOIP2_CLI_LICENCE_KEY',
Use in code
Installation
npm install geoip2-cli
Examples
; await Geoip2CliDownloader .download .thenconsole.logpath;
; ;;
License
MIT