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.4.5 to 1.4.6

2

package.json
{
"name" : "geoip-lite",
"version" : "1.4.5",
"version" : "1.4.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"],

@@ -33,3 +33,16 @@ // fetches and converts maxmind lite databases

}
var geodatadir = args.find(function(arg) {
return arg.match(/^geodatadir=[\w./]+/) !== null;
});
if (typeof geodatadir === 'undefined' && typeof process.env.GEODATADIR !== 'undefined') {
geodatadir = 'geodatadir='+process.env.GEODATADIR;
}
var dataPath = path.join(__dirname, '..', 'data');
if (typeof geodatadir !== 'undefined') {
dataPath = path.join(process.cwd(), geodatadir.split('=')[1]);
if (!fs.existsSync(dataPath)) {
console.log(chalk.red('ERROR') + ': Directory does\'t exist: ' + dataPath);
process.exit(1);
}
}
var tmpPath = path.join(__dirname, '..', 'tmp');

@@ -36,0 +49,0 @@ var countryLookup = {};

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