Gathering detailed insights and metrics for @types/geoip-lite
Gathering detailed insights and metrics for @types/geoip-lite
Gathering detailed insights and metrics for @types/geoip-lite
Gathering detailed insights and metrics for @types/geoip-lite
The repository for high quality TypeScript type definitions.
npm install @types/geoip-lite
Typescript
Module System
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
50,025 Stars
89,737 Commits
30,435 Forks
640 Watchers
6 Branches
9,957 Contributors
Updated on Jul 12, 2025
Latest Version
1.4.4
Package Id
@types/geoip-lite@1.4.4
Unpacked Size
6.01 kB
Size
2.22 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
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.
1/** 2 * https://github.com/bluesmoon/node-geoip#looking-up-an-ip-address 3 */ 4export interface Lookup { 5 /** [ <low bound of IP block>, <high bound of IP block> ] */ 6 range: [number, number]; 7 /** 2 letter ISO-3166-1 country code https://www.iban.com/country-codes */ 8 country: string; 9 /** 10 * Up to 3 alphanumeric variable length characters as ISO 3166-2 code 11 * For US states this is the 2 letter state 12 * For the United Kingdom this could be ENG as a country like “England 13 * FIPS 10-4 subcountry code 14 */ 15 region: string; 16 /** 1 if the country is a member state of the European Union, 0 otherwise. */ 17 eu: "1" | "0"; 18 /** "Country/Zone" Timezone from IANA Time Zone Database */ 19 timezone: string; 20 /** This is the full city name */ 21 city: string; 22 /** The latitude and longitude of the city */ 23 ll: [number, number]; 24 /** Metro code */ 25 metro: number; 26 /** The approximate accuracy radius (km), around the latitude and longitude */ 27 area: number; 28} 29 30export interface AsyncCallback { 31 (err?: Error): void; 32} 33 34export type CmpArgs = number | [number]; 35export type CmpResult = 1 | -1 | 0 | null; 36 37export function cmp(a: CmpArgs, b: CmpArgs): null | Lookup; 38export function lookup(ip: string | number): null | Lookup; 39export function pretty(ip: string | number | Array<string | number>): string; 40export function startWatchingDataUpdate(cb?: AsyncCallback): void; 41export function stopWatchingDataUpdate(): void; 42export function clear(): void; 43export function reloadData(cb?: AsyncCallback): void; 44export function reloadDataSync(): void; 45
These definitions were written by Yuce Tekol, Artem, and Piotr Błażejewicz.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
Found 27/30 approved changesets -- score normalized to 9
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More