Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

geodbconverter

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geodbconverter

Convert ipgeobase.ru DB to MaxMind GeoLiteCity format

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
Maintainers
1
Weekly downloads
 
Created
Source

geodbconverter

ipgeobase.ru DB to MaxMind GeoLiteCity conversion utility

Installation

npm install -g geodbconverter

Usage

Command line

To create GeoIP GeoLiteCity-Blocks.csv and GeoLiteCity-Location.csv files run command:

geodbconverter [options] [outputDir]
Options:
-h, --help                output usage information
-V, --version             output the version number
-d, --download-url [url]  ipgeobase.ru zip archive url (by default http://ipgeobase.ru/files/db/Main/geo_files.zip)
-l, --local               Use local files without archive downloading
-i, --ipblocks [path]     Used only with --cities option. It's path to local file with blocks of IP addresses if used with --local option. It's file name in archive if DB is downloaded from ipgeobase.ru. By default "cidr_optim.txt"
-c, --cities [path]       Used only with --ipblocks option. It's path to local file with cities names if used with --local option. It's file name in archive if DB is downloaded from ipgeobase.ru. By default "cities.txt"
--ipblocks-output [path]  IP blocks output file name (by default "GeoLiteCity-Blocks.csv")
--cities-output [path]    Cities output file name (by default "GeoLiteCity-Location.csv")
Examples:

Download db from ipgeobase server, convert and save to current directory:

geodbconverter

Convert and save to custom directory:

geodbconverter ./converted/GeoLiteCity

Local module

var geodbconverter = require('geodbconverter');

geodbconverter.download(options);
geodbconverter.convert(options);

Notes

To convert .csv files to .dat use mteodoro/mmutils.

Keywords

FAQs

Package last updated on 10 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc