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

geoip-lite

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geoip-lite - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

12

lib/city-converter.js
var fs = require('fs');
var lfile = process.argv[2];
var bfile = process.argv[3];
var ofile = process.argv[4];
var bfile = process.argv[2];
var ofile = process.argv[3];
var lfile = bfile.replace(/-Blocks.csv/, '-Location.csv');
if(!lfile || !bfile || !ofile) {
console.warn("No input/output file");
if(!bfile || !ofile) {
console.warn("Usage: %s <blocks file> <output file>", require('path').basename(process.argv[1]));
process.exit();

@@ -74,3 +74,3 @@ }

var ofd = fs.openSync(ofile, "w");
var lfd = fs.openSync(ofile.replace(/\.dat/, '-locations.dat'), "w");
var lfd = fs.openSync(ofile.replace(/\.dat/, '-names.dat'), "w");
var lstream = fs.createReadStream(lfile);

@@ -77,0 +77,0 @@ lstream.setEncoding('utf8');

@@ -7,3 +7,3 @@ var fs = require('fs');

if(!ifile || !ofile) {
console.warn("No input/output file");
console.warn("Usage: %s <input file> <output file>", require('path').basename(process.argv[1]));
process.exit();

@@ -10,0 +10,0 @@ }

{
"name" : "geoip-lite",
"version" : "1.0.5",
"version" : "1.0.6",
"description" : "A light weight native JavaScript implementation of GeoIP API from MaxMind",

@@ -5,0 +5,0 @@ "keywords" : ["geo", "geoip", "ip", "ipv4", "ipv6", "geolookup", "maxmind", "geolite"],

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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