Gathering detailed insights and metrics for @paskalov-aris/countries-list
Gathering detailed insights and metrics for @paskalov-aris/countries-list
npm install @paskalov-aris/countries-list
Typescript
Module System
Node Version
NPM Version
Improve `getCountryCode()`
Published on 31 Jul 2024
Update data & types (new `partOf`, `userAssigned` params for countries)
Published on 04 Mar 2024
v3.0.6
Published on 20 Oct 2023
v3.0.5
Published on 29 Sept 2023
v3.0.1
Published on 29 Sept 2023
v3.0: ESM, TypeScript, Turborepo and country data updates
Published on 12 Sept 2023
TypeScript (97.75%)
PHP (2.17%)
Shell (0.07%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
232
Last Day
1
Last Week
2
Last Month
7
Last Year
104
1,213 Stars
206 Commits
432 Forks
18 Watching
2 Branches
14 Contributors
Minified
Minified + Gzipped
Latest Version
5.0.0
Package Id
@paskalov-aris/countries-list@5.0.0
Unpacked Size
204.11 kB
Size
64.94 kB
File Count
45
NPM Version
8.19.3
Node Version
16.16.0
Publised On
17 Jan 2023
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
-33.3%
2
Compared to previous week
Last month
133.3%
7
Compared to previous month
Last year
-18.8%
104
Compared to previous year
28
Continents & countries: ISO 3166-1 alpha-2 code (with alpha-2 to alpha-3 set), name, ISO 639-1 languages, capital and ISO 4217 currency codes, native name, calling codes. Lists are available in JSON, CSV and SQL formats. Also, contains separate JSON files with additional country Emoji flags data.
This version changes a lot in the data structures, and placement of the files.
So, if your projects depend on the old structure — specify previous versions, <2.0.0
.
Package is available via:
npm install countries-list
composer require annexare/countries-list
bower install countries
Module exports continents
, countries
, languages
, languagesAll
and functions:
getEmojiFlag(countryCode)
, where countryCode
is alpha-2 String
getUnicode(emoji)
, where emoji
is alpha-2 emoji flag String
Built files are in the ./dist
directory.
The ./data
directory contains source data.
The consistent data is available from ./dist/data.*
files (JSON, SQL).
Note: ES5 UMD build is here: ./dist/index.es5.min.js
.
Note: Country item languages
field is an Array
in JSON files to easily count and match items with a Language item.
But currency
and phone
calling codes may be a comma-separated String
.
Note: Languages list only contains languages used in Countries data. Full list of known languages is exported as languagesAll
from ./dist/languages.all.json
.
{
"continents": {
"AF": "Africa",
"AN": "Antarctica",
"AS": "Asia",
"EU": "Europe",
"NA": "North America",
"OC": "Oceania",
"SA": "South America"
},
"countries": {
"AE": {
"name": "United Arab Emirates",
"native": "دولة الإمارات العربية المتحدة",
"phone": "971",
"continent": "AS",
"capital": "Abu Dhabi",
"currency": "AED",
"languages": [
"ar"
],
"emoji": "🇦🇪",
"emojiU": "U+1F1E6 U+1F1EA"
},
...
"UA": {
"name": "Ukraine",
"native": "Україна",
"phone": "380",
"continent": "EU",
"capital": "Kyiv",
"currency": "UAH",
"languages": [
"uk"
],
"emoji": "🇺🇦",
"emojiU": "U+1F1FA U+1F1E6"
}
},
"languages": {
"ar": {
"name": "Arabic",
"native": "العربية",
"rtl": 1
},
...
"uk": {
"name": "Ukrainian",
"native": "Українська"
}
}
}
Everything is generated from files in ./data/
, including SQL file.
Everything in ./dist/
is generated,
so please make data related changes ONLY to files from ./data/
, commit them.
Use npm run build
command to build/test generated files.
Prepared by Annexare Studio from different public sources. Feel free to use it as you need in your apps or send updates into this public repository. It's under MIT license.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
3 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 2/29 approved changesets -- score normalized to 0
Reason
0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-02-03
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