Gathering detailed insights and metrics for @types/geoip-lite
Gathering detailed insights and metrics for @types/geoip-lite
npm install @types/geoip-lite
Typescript
Module System
99.7
Supply Chain
84.1
Quality
75.9
Maintenance
100
Vulnerability
100
License
TypeScript (99.9%)
JavaScript (0.09%)
Shell (0.01%)
Total Downloads
7,765,032
Last Day
10,058
Last Week
47,388
Last Month
209,870
Last Year
2,591,127
49,107 Stars
88,630 Commits
30,293 Forks
640 Watching
5 Branches
9,977 Contributors
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
Publised On
07 Nov 2023
Cumulative downloads
Total Downloads
Last day
-14.3%
10,058
Compared to previous day
Last week
-13.6%
47,388
Compared to previous week
Last month
6.9%
209,870
Compared to previous month
Last year
30.1%
2,591,127
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 2 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
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-01-27
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