Gathering detailed insights and metrics for @types/country-list-js
Gathering detailed insights and metrics for @types/country-list-js
Gathering detailed insights and metrics for @types/country-list-js
Gathering detailed insights and metrics for @types/country-list-js
The repository for high quality TypeScript type definitions.
npm install @types/country-list-js
Typescript
Module System
78.8
Supply Chain
99.6
Quality
75.4
Maintenance
100
Vulnerability
100
License
TypeScript (99.84%)
JavaScript (0.16%)
Shell (0.01%)
Total Downloads
370,164
Last Day
733
Last Week
3,505
Last Month
14,302
Last Year
140,036
NOASSERTION License
49,790 Stars
89,433 Commits
30,395 Forks
640 Watchers
6 Branches
9,958 Contributors
Updated on May 23, 2025
Latest Version
3.1.5
Package Id
@types/country-list-js@3.1.5
Unpacked Size
6.06 kB
Size
1.95 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
25.1%
733
Compared to previous day
Last Week
-17.3%
3,505
Compared to previous week
Last Month
-2.1%
14,302
Compared to previous month
Last Year
34.3%
140,036
Compared to previous year
npm install --save @types/country-list-js
This package contains type definitions for country-list-js (https://github.com/i-rocky/country-list-js).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/country-list-js.
1export interface Province { 2 name: string; 3 alias: string[] | null; 4 region?: string | undefined; 5 short?: string | undefined; 6} 7 8export interface CountryCode { 9 iso2: string; 10 iso3: string; 11} 12 13export interface Currency { 14 code: string; 15 decimal: string; 16 symbol: string; 17} 18 19export interface Country { 20 name: string; 21 region: string; 22 capital: string; 23 continent: string; 24 dialing_code: string; 25 code: CountryCode; 26 currency: Currency; 27 provinces: Province[]; 28} 29 30export interface CountriesMap { 31 [key: string]: Country; 32} 33 34export interface Cache { 35 capital?: CountriesMap | undefined; 36 currency?: CountriesMap | undefined; 37 iso3?: CountriesMap | undefined; 38 name?: CountriesMap | undefined; 39 province?: CountriesMap | undefined; 40} 41 42export type CountryRecordMember = 43 | "name" 44 | "region" 45 | "capital" 46 | "continent" 47 | "dialing_code" 48 | "code" 49 | "currency" 50 | "provinces"; 51 52export function names(): string[]; 53 54export function continents(): string[]; 55 56export function capitals(): string[]; 57 58/** 59 * Note that this function does not filter the results. Thus, you may get lots of undefined entries. 60 */ 61export function ls(member: CountryRecordMember): Array<string | undefined>; 62 63export function findByIso2(iso2: string): Country | undefined; 64 65export function findByIso3(iso3: string): Country | undefined; 66 67export function findByName(name: string): Country | undefined; 68 69export function findByCapital(capital: string): Country | undefined; 70 71export function findByCurrency(currency: string): Country | undefined; 72 73export function findByPhoneNbr(phone: string): Country | undefined; 74 75export function findByProvince(province: string): Country | undefined; 76 77export const all: CountriesMap; 78 79export const cache: Cache; 80
These definitions were written by Digory Doolittle.
No vulnerabilities found.
Reason
30 commit(s) and 0 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/29 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-05-19
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