{"id":13582948,"url":"https://github.com/svtslv/geoip2-cli","last_synced_at":"2025-04-21T06:31:37.601Z","repository":{"id":39903288,"uuid":"249961967","full_name":"svtslv/geoip2-cli","owner":"svtslv","description":"Code and command-line utils for download and convert geoip2 maxmind mmdb","archived":false,"fork":false,"pushed_at":"2024-06-18T01:16:59.000Z","size":2494,"stargazers_count":5,"open_issues_count":6,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T22:03:15.517Z","etag":null,"topics":["cli","command","convert","download","geoip2","json","maxmind"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/svtslv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-25T11:36:15.000Z","updated_at":"2023-01-25T21:06:22.000Z","dependencies_parsed_at":"2023-02-18T03:45:22.933Z","dependency_job_id":"c1130099-134c-45a5-94e5-3762a09cef54","html_url":"https://github.com/svtslv/geoip2-cli","commit_stats":{"total_commits":35,"total_committers":3,"mean_commits":"11.666666666666666","dds":0.1428571428571429,"last_synced_commit":"bf1d5d7d584ed5d6f18257e75e9c7bb44b3bd317"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svtslv%2Fgeoip2-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svtslv%2Fgeoip2-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svtslv%2Fgeoip2-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svtslv%2Fgeoip2-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svtslv","download_url":"https://codeload.github.com/svtslv/geoip2-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250008198,"owners_count":21359945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","command","convert","download","geoip2","json","maxmind"],"created_at":"2024-08-01T15:03:09.095Z","updated_at":"2025-04-21T06:31:37.246Z","avatar_url":"https://github.com/svtslv.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# GeoIP2 CLI\n\n\u003ca href=\"https://www.npmjs.com/package/geoip2-cli\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/geoip2-cli.svg\" alt=\"NPM Version\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/geoip2-cli\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/geoip2-cli.svg\" alt=\"Package License\" /\u003e\u003c/a\u003e\n\n## Table of Contents\n\n- [Description](#description)\n- [Command line](#command-line)\n- [User in code](#use-in-code)\n- [License](#license)\n\n## Description\n\nCode and command-line utils for download and convert geoip2 maxmind mmdb\n\n## Command line\n\n#### Globally via `npm`\n\n```sh\nnpm install --global geoip2-cli\n```\n\n#### Running on-demand:\n\n```sh\nnpx geoip2-cli [options]\n```\n\n### Examples\n\n```sh\nnpx geoip2-cli --help\n```\n\n```sh\n    'usage: geoip2-cli [options]',\n    '',\n    'options:',\n    '  --download       Download [false]',\n    '  --downloadPath   Path to download [./geoip2-cli]',\n    '  --licenseKey     Your license key [error]',\n    '  --editions       Editions: city, country, asn [city]',\n    '  --date           Database date version [empty]',\n    '',\n    '  --convert        Convert [false]',\n    '  --mmdbPath       Path to .mmdb [./geoip2-cli/GeoLite2-City.mmdb]',\n    '  --jsonPath       Path to .json [mmdbPath + .json]',\n    '',\n    '  --help           Print this list and exit',\n    '  --version        Print the version and exit.',\n    '',\n    'env:',\n    '  GEOIP2_CLI_LICENCE_KEY',\n```\n\n## Use in code\n\n### Installation\n\n```bash\nnpm install geoip2-cli\n```\n\n### Examples\n\n```ts\nimport { Geoip2CliDownloader } from 'geoip2-cli';\n\nawait Geoip2CliDownloader\n    .download({ licenseKey, date, edition, downloadPath })\n    .then(path =\u003e console.log(path));\n```\n\n```ts\nimport { Geoip2CliConverter } from 'geoip2-cli';\n\nconst converter = Geoip2CliConverter.openSync('GeoLite2-City.mmdb');\nconst result = converter.getUnique();\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvtslv%2Fgeoip2-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvtslv%2Fgeoip2-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvtslv%2Fgeoip2-cli/lists"}