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

geoip-lite2

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geoip-lite2 - npm Package Compare versions

Comparing version 2.1.19 to 2.1.20

27

index.d.ts
declare module 'geoip-lite2' {
export const cmp: number | any | null
export const cmp: number | any | null;
export type GeoData = {
interface GeoIp2Location {
range: [number, number];
country: string;
region: string;
eu: string;
eu: '0' | '1';
timezone: string;

@@ -14,11 +14,18 @@ city: string;

area: number;
};
}
export function lookup(ip: string): GeoData | null;
function lookup(ip: string): GeoIp2Location | null;
function pretty(ip: string | number): string;
export const pretty: (n: string | number | number[]) => string;
export const startWatchingDataUpdate: (callback: () => void) => void;
export const reloadDataSync: () => void;
export const reloadData: (callback: () => void) => void;
export const version: string;
function reloadDataSync(): void;
function reloadData(callback: () => void): void;
function startWatchingDataUpdate(): void;
export {
lookup,
pretty,
reloadDataSync,
reloadData,
startWatchingDataUpdate,
};
}
{
"name": "geoip-lite2",
"version": "2.1.19",
"version": "2.1.20",
"description": "A light weight native JavaScript implementation of GeoIP API from MaxMind. Improved and faster version by Sefinek.",

@@ -5,0 +5,0 @@ "keywords": [

<div align="center">
<a href="https://cdn.sefinek.net/images/npm/geoip-lite2/banner.jpg" target="_blank" title="Full screen">
<img src="https://cdn.sefinek.net/images/npm/geoip-lite2/banner.jpg" alt="GeoIP-Lite2 v2.1 🗺️ Now even faster!">
<img src="https://cdn.sefinek.net/images/npm/geoip-lite2/banner.jpg" alt="GeoIP-Lite 2.1 🗺️ Now even faster!">
</a>

@@ -5,0 +5,0 @@ <br>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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