geoip-lite
Advanced tools
Comparing version 1.0.5 to 1.0.6
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 2 instances in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3
2084466
7