
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
@types/geoip-lite
Advanced tools
TypeScript definitions for geoip-lite
npm install --save @types/geoip-lite
This package contains type definitions for geoip-lite (https://github.com/bluesmoon/node-geoip).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/geoip-lite.
/**
* https://github.com/bluesmoon/node-geoip#looking-up-an-ip-address
*/
export interface Lookup {
/** [ <low bound of IP block>, <high bound of IP block> ] */
range: [number, number];
/** 2 letter ISO-3166-1 country code https://www.iban.com/country-codes */
country: string;
/**
* Up to 3 alphanumeric variable length characters as ISO 3166-2 code
* For US states this is the 2 letter state
* For the United Kingdom this could be ENG as a country like “England
* FIPS 10-4 subcountry code
*/
region: string;
/** 1 if the country is a member state of the European Union, 0 otherwise. */
eu: "1" | "0";
/** "Country/Zone" Timezone from IANA Time Zone Database */
timezone: string;
/** This is the full city name */
city: string;
/** The latitude and longitude of the city */
ll: [number, number];
/** Metro code */
metro: number;
/** The approximate accuracy radius (km), around the latitude and longitude */
area: number;
}
export interface AsyncCallback {
(err?: Error): void;
}
export type CmpArgs = number | [number];
export type CmpResult = 1 | -1 | 0 | null;
export function cmp(a: CmpArgs, b: CmpArgs): null | Lookup;
export function lookup(ip: string | number): null | Lookup;
export function pretty(ip: string | number | Array<string | number>): string;
export function startWatchingDataUpdate(cb?: AsyncCallback): void;
export function stopWatchingDataUpdate(): void;
export function clear(): void;
export function reloadData(cb?: AsyncCallback): void;
export function reloadDataSync(): void;
These definitions were written by Yuce Tekol, Artem, and Piotr Błażejewicz.
FAQs
TypeScript definitions for geoip-lite
The npm package @types/geoip-lite receives a total of 216,192 weekly downloads. As such, @types/geoip-lite popularity was classified as popular.
We found that @types/geoip-lite demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.