Gathering detailed insights and metrics for @types/country-list
Gathering detailed insights and metrics for @types/country-list
The repository for high quality TypeScript type definitions.
npm install @types/country-list
Typescript
Module System
100
Supply Chain
83.5
Quality
76.6
Maintenance
100
Vulnerability
100
License
TypeScript (99.9%)
JavaScript (0.09%)
Shell (0.01%)
Total Downloads
13,729,543
Last Day
21,827
Last Week
91,863
Last Month
397,190
Last Year
4,375,816
49,092 Stars
88,625 Commits
30,288 Forks
640 Watching
5 Branches
9,977 Contributors
Latest Version
2.1.4
Package Id
@types/country-list@2.1.4
Unpacked Size
4.97 kB
Size
1.85 kB
File Count
5
Publised On
07 Nov 2023
Cumulative downloads
Total Downloads
Last day
-2.5%
21,827
Compared to previous day
Last week
-13.9%
91,863
Compared to previous week
Last month
20.2%
397,190
Compared to previous month
Last year
20.9%
4,375,816
Compared to previous year
npm install --save @types/country-list
This package contains type definitions for country-list (https://github.com/fannarsh/country-list).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/country-list.
1export interface Country { 2 code: string; 3 name: string; 4} 5 6/** 7 * Expects an array of code and country name pairs to add to the list. Doesn't return anything. 8 */ 9export function overwrite(countries: Country[]): void; 10 11/** 12 * Expects a two-digit country code. Returns the name for that country. If not found, it returns undefined. 13 */ 14export function getName(code: string): string | undefined; 15 16/** 17 * Expects the English country name. Returns the code for that country. If not found, it returns undefined. 18 */ 19export function getCode(name: string): string | undefined; 20 21/** 22 * Returns an array of all country names. 23 */ 24export function getNames(): string[]; 25 26/** 27 * Returns an array of all country codes. 28 */ 29export function getCodes(): string[]; 30 31/** 32 * Returns a key-value object of all countries using the name as key. 33 */ 34export function getNameList(): { [name: string]: string }; 35 36/** 37 * Returns a key-value object of all countries using the code as key. 38 */ 39export function getCodeList(): { [code: string]: string }; 40 41/** 42 * Returns an array of all country information, in the same format as it gets imported. 43 */ 44export function getData(): Country[]; 45
These definitions were written by Kyle Roach, and Adam Binford.
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