Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

country-flags-svg-alpha

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

country-flags-svg-alpha - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

138

dist/data/flags.js
"use strict";
function createUrl(svgUrl) {
return "https://upload.wikimedia.org/wikipedia".concat(svgUrl);
}
module.exports = {
"ABW": "https://upload.wikimedia.org/wikipedia/commons/f/f6/Flag_of_Aruba.svg",
"AUS": "https://upload.wikimedia.org/wikipedia/commons/8/88/Flag_of_Australia_%28converted%29.svg",
"AUT": "https://upload.wikimedia.org/wikipedia/commons/4/41/Flag_of_Austria.svg",
"AZE": "https://upload.wikimedia.org/wikipedia/commons/d/dd/Flag_of_Azerbaijan.svg",
"BHR": "https://upload.wikimedia.org/wikipedia/commons/2/2c/Flag_of_Bahrain.svg",
"BGD": "https://upload.wikimedia.org/wikipedia/commons/f/f9/Flag_of_Bangladesh.svg",
"BEL": "https://upload.wikimedia.org/wikipedia/commons/9/92/Flag_of_Belgium_%28civil%29.svg",
"BRA": "https://upload.wikimedia.org/wikipedia/commons/0/05/Flag_of_Brazil.svg",
"CAN": "https://upload.wikimedia.org/wikipedia/commons/c/cf/Flag_of_Canada.svg",
"CHL": "https://upload.wikimedia.org/wikipedia/commons/7/78/Flag_of_Chile.svg",
"EUR": "https://upload.wikimedia.org/wikipedia/commons/b/b7/Flag_of_Europe.svg",
"HRV": "https://upload.wikimedia.org/wikipedia/commons/1/1b/Flag_of_Croatia.svg",
"CYP": "https://upload.wikimedia.org/wikipedia/commons/d/d4/Flag_of_Cyprus.svg",
"CHN": "https://upload.wikimedia.org/wikipedia/commons/f/fa/Flag_of_the_People%27s_Republic_of_China.svg",
"COL": "https://upload.wikimedia.org/wikipedia/commons/2/21/Flag_of_Colombia.svg",
"CZE": "https://upload.wikimedia.org/wikipedia/commons/c/cb/Flag_of_the_Czech_Republic.svg",
"DNK": "https://upload.wikimedia.org/wikipedia/commons/9/9c/Flag_of_Denmark.svg",
"EST": "https://upload.wikimedia.org/wikipedia/commons/8/8f/Flag_of_Estonia.svg",
"FIN": "https://upload.wikimedia.org/wikipedia/commons/b/bc/Flag_of_Finland.svg",
"FJI": "https://upload.wikimedia.org/wikipedia/commons/b/ba/Flag_of_Fiji.svg",
"FRA": "https://upload.wikimedia.org/wikipedia/commons/c/c3/Flag_of_France.svg",
"DEU": "https://upload.wikimedia.org/wikipedia/commons/b/ba/Flag_of_Germany.svg",
"GRC": "https://upload.wikimedia.org/wikipedia/commons/5/5c/Flag_of_Greece.svg",
"HKG": "https://upload.wikimedia.org/wikipedia/commons/5/5b/Flag_of_Hong_Kong.svg",
"HUN": "https://upload.wikimedia.org/wikipedia/commons/c/c1/Flag_of_Hungary.svg",
"IND": "https://upload.wikimedia.org/wikipedia/commons/4/41/Flag_of_India.svg",
"IDN": "https://upload.wikimedia.org/wikipedia/commons/9/9f/Flag_of_Indonesia.svg",
"IRL": "https://upload.wikimedia.org/wikipedia/commons/4/45/Flag_of_Ireland.svg",
"ITA": "https://upload.wikimedia.org/wikipedia/commons/0/03/Flag_of_Italy.svg",
"JPN": "https://upload.wikimedia.org/wikipedia/commons/9/9e/Flag_of_Japan.svg",
"LVA": "https://upload.wikimedia.org/wikipedia/commons/8/84/Flag_of_Latvia.svg",
"LIE": "https://upload.wikimedia.org/wikipedia/commons/4/47/Flag_of_Liechtenstein.svg",
"LTU": "https://upload.wikimedia.org/wikipedia/commons/1/11/Flag_of_Lithuania.svg",
"LUX": "https://upload.wikimedia.org/wikipedia/commons/d/da/Flag_of_Luxembourg.svg",
"MYS": "https://upload.wikimedia.org/wikipedia/commons/6/66/Flag_of_Malaysia.svg",
"MUS": "https://upload.wikimedia.org/wikipedia/commons/7/77/Flag_of_Mauritius.svg",
"MEX": "https://upload.wikimedia.org/wikipedia/commons/f/fc/Flag_of_Mexico.svg",
"MCO": "https://upload.wikimedia.org/wikipedia/commons/e/ea/Flag_of_Monaco.svg",
"MNE": "https://upload.wikimedia.org/wikipedia/commons/6/64/Flag_of_Montenegro.svg",
"NLD": "https://upload.wikimedia.org/wikipedia/commons/2/20/Flag_of_the_Netherlands.svg",
"NPL": "https://upload.wikimedia.org/wikipedia/commons/9/9b/Flag_of_Nepal.svg",
"NZL": "https://upload.wikimedia.org/wikipedia/commons/3/3e/Flag_of_New_Zealand.svg",
"NOR": "https://upload.wikimedia.org/wikipedia/commons/d/d9/Flag_of_Norway.svg",
"PAN": "https://upload.wikimedia.org/wikipedia/commons/a/ab/Flag_of_Panama.svg",
"PHL": "https://upload.wikimedia.org/wikipedia/commons/9/99/Flag_of_the_Philippines.svg",
"POL": "https://upload.wikimedia.org/wikipedia/en/1/12/Flag_of_Poland.svg",
"PRT": "https://upload.wikimedia.org/wikipedia/commons/5/5c/Flag_of_Portugal.svg",
"RUS": "https://upload.wikimedia.org/wikipedia/commons/f/f3/Flag_of_Russia.svg",
"SGP": "https://upload.wikimedia.org/wikipedia/commons/4/48/Flag_of_Singapore.svg",
"SVK": "https://upload.wikimedia.org/wikipedia/commons/e/e6/Flag_of_Slovakia.svg",
"SVN": "https://upload.wikimedia.org/wikipedia/commons/f/f0/Flag_of_Slovenia.svg",
"ZAF": "https://upload.wikimedia.org/wikipedia/commons/a/af/Flag_of_South_Africa.svg",
"KOR": "https://upload.wikimedia.org/wikipedia/commons/0/09/Flag_of_South_Korea.svg",
"ESP": "https://upload.wikimedia.org/wikipedia/commons/9/9a/Flag_of_Spain.svg",
"LKA": "https://upload.wikimedia.org/wikipedia/commons/1/11/Flag_of_Sri_Lanka.svg",
"SWE": "https://upload.wikimedia.org/wikipedia/commons/4/4c/Flag_of_Sweden.svg",
"CHE": "https://upload.wikimedia.org/wikipedia/commons/0/08/Flag_of_Switzerland_%28Pantone%29.svg",
"THA": "https://upload.wikimedia.org/wikipedia/commons/a/a9/Flag_of_Thailand.svg",
"TUR": "https://upload.wikimedia.org/wikipedia/commons/b/b4/Flag_of_Turkey.svg",
"UKR": "https://upload.wikimedia.org/wikipedia/commons/4/49/Flag_of_Ukraine.svg",
"GBR": "https://upload.wikimedia.org/wikipedia/commons/a/ae/Flag_of_the_United_Kingdom.svg",
"USA": "https://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg",
"ARE": "https://upload.wikimedia.org/wikipedia/commons/c/cb/Flag_of_the_United_Arab_Emirates.svg",
"URY": "https://upload.wikimedia.org/wikipedia/commons/f/fe/Flag_of_Uruguay.svg",
"VEN": "https://upload.wikimedia.org/wikipedia/commons/0/06/Flag_of_Venezuela.svg",
"VNM": "https://upload.wikimedia.org/wikipedia/commons/2/21/Flag_of_Vietnam.svg",
"ZWE": "https://upload.wikimedia.org/wikipedia/commons/6/6a/Flag_of_Zimbabwe.svg"
"ABW": createUrl("f/f6/Flag_of_Aruba.svg"),
"AUS": createUrl("8/88/Flag_of_Australia_%28converted%29.svg"),
"AUT": createUrl("4/41/Flag_of_Austria.svg"),
"AZE": createUrl("d/dd/Flag_of_Azerbaijan.svg"),
"BHR": createUrl("2/2c/Flag_of_Bahrain.svg"),
"BGD": createUrl("f/f9/Flag_of_Bangladesh.svg"),
"BEL": createUrl("9/92/Flag_of_Belgium_%28civil%29.svg"),
"BRA": createUrl("0/05/Flag_of_Brazil.svg"),
"CAN": createUrl("c/cf/Flag_of_Canada.svg"),
"CHL": createUrl("7/78/Flag_of_Chile.svg"),
"EUR": createUrl("b/b7/Flag_of_Europe.svg"),
"HRV": createUrl("1/1b/Flag_of_Croatia.svg"),
"CYP": createUrl("d/d4/Flag_of_Cyprus.svg"),
"CHN": createUrl("f/fa/Flag_of_the_People%27s_Republic_of_China.svg"),
"COL": createUrl("2/21/Flag_of_Colombia.svg"),
"CZE": createUrl("c/cb/Flag_of_the_Czech_Republic.svg"),
"DNK": createUrl("9/9c/Flag_of_Denmark.svg"),
"EST": createUrl("8/8f/Flag_of_Estonia.svg"),
"FIN": createUrl("b/bc/Flag_of_Finland.svg"),
"FJI": createUrl("b/ba/Flag_of_Fiji.svg"),
"FRA": createUrl("c/c3/Flag_of_France.svg"),
"DEU": createUrl("b/ba/Flag_of_Germany.svg"),
"GRC": createUrl("5/5c/Flag_of_Greece.svg"),
"HKG": createUrl("5/5b/Flag_of_Hong_Kong.svg"),
"HUN": createUrl("c/c1/Flag_of_Hungary.svg"),
"IND": createUrl("4/41/Flag_of_India.svg"),
"IDN": createUrl("9/9f/Flag_of_Indonesia.svg"),
"IRL": createUrl("4/45/Flag_of_Ireland.svg"),
"ITA": createUrl("0/03/Flag_of_Italy.svg"),
"JPN": createUrl("9/9e/Flag_of_Japan.svg"),
"LVA": createUrl("8/84/Flag_of_Latvia.svg"),
"LIE": createUrl("4/47/Flag_of_Liechtenstein.svg"),
"LTU": createUrl("1/11/Flag_of_Lithuania.svg"),
"LUX": createUrl("d/da/Flag_of_Luxembourg.svg"),
"MYS": createUrl("6/66/Flag_of_Malaysia.svg"),
"MUS": createUrl("7/77/Flag_of_Mauritius.svg"),
"MEX": createUrl("f/fc/Flag_of_Mexico.svg"),
"MCO": createUrl("e/ea/Flag_of_Monaco.svg"),
"MNE": createUrl("6/64/Flag_of_Montenegro.svg"),
"NLD": createUrl("2/20/Flag_of_the_Netherlands.svg"),
"NPL": createUrl("9/9b/Flag_of_Nepal.svg"),
"NZL": createUrl("3/3e/Flag_of_New_Zealand.svg"),
"NOR": createUrl("d/d9/Flag_of_Norway.svg"),
"PAN": createUrl("a/ab/Flag_of_Panama.svg"),
"PHL": createUrl("9/99/Flag_of_the_Philippines.svg"),
"POL": "https://upload.wikimedia.org/wikipedia/en/1/12/Flag_of_Poland.svg",
"PRT": createUrl("5/5c/Flag_of_Portugal.svg"),
"RUS": createUrl("f/f3/Flag_of_Russia.svg"),
"SGP": createUrl("4/48/Flag_of_Singapore.svg"),
"SVK": createUrl("e/e6/Flag_of_Slovakia.svg"),
"SVN": createUrl("f/f0/Flag_of_Slovenia.svg"),
"ZAF": createUrl("a/af/Flag_of_South_Africa.svg"),
"KOR": createUrl("0/09/Flag_of_South_Korea.svg"),
"ESP": createUrl("9/9a/Flag_of_Spain.svg"),
"LKA": createUrl("1/11/Flag_of_Sri_Lanka.svg"),
"SWE": createUrl("4/4c/Flag_of_Sweden.svg"),
"CHE": createUrl("0/08/Flag_of_Switzerland_%28Pantone%29.svg"),
"THA": createUrl("a/a9/Flag_of_Thailand.svg"),
"TUR": createUrl("b/b4/Flag_of_Turkey.svg"),
"UKR": createUrl("4/49/Flag_of_Ukraine.svg"),
"GBR": createUrl("a/ae/Flag_of_the_United_Kingdom.svg"),
"USA": "https://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg",
"ARE": createUrl("c/cb/Flag_of_the_United_Arab_Emirates.svg"),
"URY": createUrl("f/fe/Flag_of_Uruguay.svg"),
"VEN": createUrl("0/06/Flag_of_Venezuela.svg"),
"VNM": createUrl("2/21/Flag_of_Vietnam.svg"),
"ZWE": createUrl("6/6a/Flag_of_Zimbabwe.svg")
};

@@ -6,414 +6,413 @@ "use strict";

var countries = [{
name: "Aruba",
demonym: "Arubian",
flag: flags.ABW,
iso2: "AW",
iso3: "ABW"
name: "Aruba",
demonym: "Arubian",
flag: flags.ABW,
iso2: "AW",
iso3: "ABW"
}, {
name: "Australia",
demonym: "Australian",
flag: flags.AUS,
iso2: "AU",
iso3: "AUS"
name: "Australia",
demonym: "Australian",
flag: flags.AUS,
iso2: "AU",
iso3: "AUS"
}, {
name: "Austria",
demonym: "Austrian",
flag: flags.AUT,
iso2: "AT",
iso3: "AUT"
name: "Austria",
demonym: "Austrian",
flag: flags.AUT,
iso2: "AT",
iso3: "AUT"
}, {
name: "Azerbaijan",
demonym: "Azerbaijani",
flag: flags.AZE,
iso2: "AZ",
iso3: "AZE"
name: "Azerbaijan",
demonym: "Azerbaijani",
flag: flags.AZE,
iso2: "AZ",
iso3: "AZE"
}, {
name: "Bangladesh",
demonym: "Bengali",
flag: flags.BGD,
iso2: "BD",
iso3: "BGD"
name: "Bangladesh",
demonym: "Bengali",
flag: flags.BGD,
iso2: "BD",
iso3: "BGD"
}, {
name: "Bahrain",
demonym: "Bahraini",
flag: flags.BHR,
iso2: "BH",
iso3: "BHR"
name: "Bahrain",
demonym: "Bahraini",
flag: flags.BHR,
iso2: "BH",
iso3: "BHR"
}, {
name: "Belgium",
demonym: "Belgian",
flag: flags.BEL,
iso2: "BE",
iso3: "BEL"
name: "Belgium",
demonym: "Belgian",
flag: flags.BEL,
iso2: "BE",
iso3: "BEL"
}, {
name: "Brazil",
demonym: "Brazilian",
flag: flags.BRA,
iso2: "BR",
iso3: "BRA"
name: "Brazil",
demonym: "Brazilian",
flag: flags.BRA,
iso2: "BR",
iso3: "BRA"
}, {
name: "Canada",
demonym: "Canadian",
flag: flags.CAN,
iso2: "CA",
iso3: "CAN"
name: "Canada",
demonym: "Canadian",
flag: flags.CAN,
iso2: "CA",
iso3: "CAN"
}, {
name: "Chile",
demonym: "Chilean",
flag: flags.CHL,
iso2: "CL",
iso3: "CHL"
name: "Chile",
demonym: "Chilean",
flag: flags.CHL,
iso2: "CL",
iso3: "CHL"
}, {
name: "China",
demonym: "Chinese",
flag: flags.CHN,
iso2: "CN",
iso3: "CHN"
name: "China",
demonym: "Chinese",
flag: flags.CHN,
iso2: "CN",
iso3: "CHN"
}, {
name: "Colombia",
demonym: "Colombian",
flag: flags.COL,
iso2: "CO",
iso3: "COL"
name: "Colombia",
demonym: "Colombian",
flag: flags.COL,
iso2: "CO",
iso3: "COL"
}, {
name: "Croatia",
demonym: "Croatian",
flag: flags.HRV,
iso2: "HR",
iso3: "HRV"
name: "Croatia",
demonym: "Croatian",
flag: flags.HRV,
iso2: "HR",
iso3: "HRV"
}, {
name: "Cyprus",
demonym: "Cypriot",
flag: flags.CYP,
iso2: "CY",
iso3: "CYP"
name: "Cyprus",
demonym: "Cypriot",
flag: flags.CYP,
iso2: "CY",
iso3: "CYP"
}, {
name: "Czech Republic",
demonym: "Czech",
flag: flags.CZE,
iso2: "CZ",
iso3: "CZE"
name: "Czech Republic",
demonym: "Czech",
flag: flags.CZE,
iso2: "CZ",
iso3: "CZE"
}, {
name: "Denmark",
demonym: "Danish",
flag: flags.DNK,
iso2: "DK",
iso3: "DNK"
name: "Denmark",
demonym: "Danish",
flag: flags.DNK,
iso2: "DK",
iso3: "DNK"
}, {
name: "Europe",
demonym: "European",
flag: flags.EUR,
iso2: "EU",
iso3: "EUR"
name: "Europe",
demonym: "European",
flag: flags.EUR,
iso2: "EU",
iso3: "EUR"
}, {
name: "Estonia",
demonym: "Estonian",
flag: flags.EST,
iso2: "EE",
iso3: "EST"
name: "Estonia",
demonym: "Estonian",
flag: flags.EST,
iso2: "EE",
iso3: "EST"
}, {
name: "Fiji",
demonym: "Fijian",
flag: flags.FJI,
iso2: "FJ",
iso3: "FJI"
name: "Fiji",
demonym: "Fijian",
flag: flags.FJI,
iso2: "FJ",
iso3: "FJI"
}, {
name: "Finland",
demonym: "Finnish",
flag: flags.FIN,
iso2: "FI",
iso3: "FIN"
name: "Finland",
demonym: "Finnish",
flag: flags.FIN,
iso2: "FI",
iso3: "FIN"
}, {
name: "France",
demonym: "French",
flag: flags.FRA,
iso2: "FR",
iso3: "FRA"
name: "France",
demonym: "French",
flag: flags.FRA,
iso2: "FR",
iso3: "FRA"
}, {
name: "Germany",
demonym: "German",
flag: flags.DEU,
iso2: "DE",
iso3: "DEU"
name: "Germany",
demonym: "German",
flag: flags.DEU,
iso2: "DE",
iso3: "DEU"
}, {
name: "Greece",
demonym: "Greek",
flag: flags.GRC,
iso2: "GR",
iso3: "GRC"
name: "Greece",
demonym: "Greek",
flag: flags.GRC,
iso2: "GR",
iso3: "GRC"
}, {
name: "Hong Kong",
demonym: "Hong Kongese",
flag: flags.HKG,
iso2: "HK",
iso3: "HKG"
name: "Hong Kong",
demonym: "Hong Kongese",
flag: flags.HKG,
iso2: "HK",
iso3: "HKG"
}, {
name: "Hungary",
demonym: "Hungarian",
flag: flags.HUN,
iso2: "HU",
iso3: "HUN"
name: "Hungary",
demonym: "Hungarian",
flag: flags.HUN,
iso2: "HU",
iso3: "HUN"
}, {
name: "India",
demonym: "Indian",
flag: flags.IND,
iso2: "IN",
iso3: "IND"
name: "India",
demonym: "Indian",
flag: flags.IND,
iso2: "IN",
iso3: "IND"
}, {
name: "Indonesia",
demonym: "Indonesian",
flag: flags.IDN,
iso2: "ID",
iso3: "IDN"
name: "Indonesia",
demonym: "Indonesian",
flag: flags.IDN,
iso2: "ID",
iso3: "IDN"
}, {
name: "Ireland",
demonym: "Irish",
flag: flags.IRL,
iso2: "IE",
iso3: "IRL"
name: "Ireland",
demonym: "Irish",
flag: flags.IRL,
iso2: "IE",
iso3: "IRL"
}, {
name: "Italy",
demonym: "Italian",
flag: flags.ITA,
iso2: "IT",
iso3: "ITA"
name: "Italy",
demonym: "Italian",
flag: flags.ITA,
iso2: "IT",
iso3: "ITA"
}, {
name: "Japan",
demonym: "Japanese",
flag: flags.JPN,
iso2: "JP",
iso3: "JPN"
name: "Japan",
demonym: "Japanese",
flag: flags.JPN,
iso2: "JP",
iso3: "JPN"
}, {
name: "Latvia",
demonym: "Latvian",
flag: flags.LVA,
iso2: "LV",
iso3: "LVA"
name: "Latvia",
demonym: "Latvian",
flag: flags.LVA,
iso2: "LV",
iso3: "LVA"
}, {
name: "Liechtenstein",
demonym: "Liechtensteiner",
flag: flags.LIE,
iso2: "LI",
iso3: "LIE"
name: "Liechtenstein",
demonym: "Liechtensteiner",
flag: flags.LIE,
iso2: "LI",
iso3: "LIE"
}, {
name: "Lithuania",
demonym: "Lithuanian",
flag: flags.LTU,
iso2: "LT",
iso3: "LTU"
name: "Lithuania",
demonym: "Lithuanian",
flag: flags.LTU,
iso2: "LT",
iso3: "LTU"
}, {
name: "Luxembourg",
demonym: "Luxembourgish",
flag: flags.LUX,
iso2: "LU",
iso3: "LUX"
name: "Luxembourg",
demonym: "Luxembourgish",
flag: flags.LUX,
iso2: "LU",
iso3: "LUX"
}, {
name: "Malaysia",
demonym: "Malaysian",
flag: flags.MYS,
iso2: "MY",
iso3: "MYS"
name: "Malaysia",
demonym: "Malaysian",
flag: flags.MYS,
iso2: "MY",
iso3: "MYS"
}, {
name: "Mauritius",
demonym: "Mauritian",
flag: flags.MUS,
iso2: "MU",
iso3: "MUS"
name: "Mauritius",
demonym: "Mauritian",
flag: flags.MUS,
iso2: "MU",
iso3: "MUS"
}, {
name: "Mexico",
demonym: "Mexican",
flag: flags.MEX,
iso2: "MX",
iso3: "MEX"
name: "Mexico",
demonym: "Mexican",
flag: flags.MEX,
iso2: "MX",
iso3: "MEX"
}, {
name: "Monaco",
demonym: "Monegasque",
flag: flags.MCO,
iso2: "MC",
iso3: "MCO"
name: "Monaco",
demonym: "Monegasque",
flag: flags.MCO,
iso2: "MC",
iso3: "MCO"
}, {
name: "Montenegro",
demonym: "Montenegrin",
flag: flags.MNE,
iso2: "ME",
iso3: "MNE"
name: "Montenegro",
demonym: "Montenegrin",
flag: flags.MNE,
iso2: "ME",
iso3: "MNE"
}, {
name: "Nepal",
demonym: "Nepalese",
flag: flags.NPL,
iso2: "NP",
iso3: "NPL"
name: "Nepal",
demonym: "Nepalese",
flag: flags.NPL,
iso2: "NP",
iso3: "NPL"
}, {
name: "Netherlands",
demonym: "Dutch",
flag: flags.NLD,
iso2: "NL",
iso3: "NLD"
name: "Netherlands",
demonym: "Dutch",
flag: flags.NLD,
iso2: "NL",
iso3: "NLD"
}, {
name: "New Zealand",
demonym: "New Zealander",
flag: flags.NZL,
iso2: "NZ",
iso3: "NZL"
name: "New Zealand",
demonym: "New Zealander",
flag: flags.NZL,
iso2: "NZ",
iso3: "NZL"
}, {
name: "Norway",
demonym: "Norwegian",
flag: flags.NOR,
iso2: "NO",
iso3: "NOR"
name: "Norway",
demonym: "Norwegian",
flag: flags.NOR,
iso2: "NO",
iso3: "NOR"
}, {
name: "Panama",
demonym: "Panamanian",
flag: flags.PAN,
iso2: "PA",
iso3: "PAN"
name: "Panama",
demonym: "Panamanian",
flag: flags.PAN,
iso2: "PA",
iso3: "PAN"
}, {
name: "Philippines",
demonym: "Filipino",
flag: flags.PHL,
iso2: "PH",
iso3: "PHL"
name: "Philippines",
demonym: "Filipino",
flag: flags.PHL,
iso2: "PH",
iso3: "PHL"
}, {
name: "Poland",
demonym: "Polish",
flag: flags.POL,
iso2: "PL",
iso3: "POL"
name: "Poland",
demonym: "Polish",
flag: flags.POL,
iso2: "PL",
iso3: "POL"
}, {
name: "Portugal",
demonym: "Portuguese",
flag: flags.PRT,
iso2: "PT",
iso3: "PRT"
name: "Portugal",
demonym: "Portuguese",
flag: flags.PRT,
iso2: "PT",
iso3: "PRT"
}, {
name: "Russia",
demonym: "Russian",
flag: flags.RUS,
iso2: "RU",
iso3: "RUS"
name: "Russia",
demonym: "Russian",
flag: flags.RUS,
iso2: "RU",
iso3: "RUS"
}, {
name: "Singapore",
demonym: "Singaporean",
flag: flags.SGP,
iso2: "SG",
iso3: "SGP",
altSpellings: ["SG", "Singapura", "Republik Singapura"]
name: "Singapore",
demonym: "Singaporean",
flag: flags.SGP,
iso2: "SG",
iso3: "SGP",
altSpellings: ["SG", "Singapura", "Republik Singapura"]
}, {
name: "Sri Lanka",
demonym: "Sri Lankan",
flag: flags.LKA,
iso2: "LK",
iso3: "LKA"
name: "Sri Lanka",
demonym: "Sri Lankan",
flag: flags.LKA,
iso2: "LK",
iso3: "LKA"
}, {
name: "Slovakia",
demonym: "Slovak",
flag: flags.SVK,
iso2: "SK",
iso3: "SVK"
name: "Slovakia",
demonym: "Slovak",
flag: flags.SVK,
iso2: "SK",
iso3: "SVK"
}, {
name: "Slovenia",
demonym: "Slovenian",
flag: flags.SVN,
iso2: "SI",
iso3: "SVN"
name: "Slovenia",
demonym: "Slovenian",
flag: flags.SVN,
iso2: "SI",
iso3: "SVN"
}, {
name: "South Africa",
demonym: "South African",
flag: flags.ZAF,
iso2: "ZA",
iso3: "ZAF"
name: "South Africa",
demonym: "South African",
flag: flags.ZAF,
iso2: "ZA",
iso3: "ZAF"
}, {
name: "South Korea",
demonym: "South Korean",
flag: flags.KOR,
iso2: "KR",
iso3: "KOR",
altSpellings: ["Republic of Korea"]
name: "South Korea",
demonym: "South Korean",
flag: flags.KOR,
iso2: "KR",
iso3: "KOR",
altSpellings: ["Republic of Korea"]
}, {
name: "Spain",
demonym: "Spanish",
flag: flags.ESP,
iso2: "ES",
iso3: "ESP"
name: "Spain",
demonym: "Spanish",
flag: flags.ESP,
iso2: "ES",
iso3: "ESP"
}, {
name: "Sweden",
demonym: "Swedish",
flag: flags.SWE,
iso2: "SE",
iso3: "SWE"
name: "Sweden",
demonym: "Swedish",
flag: flags.SWE,
iso2: "SE",
iso3: "SWE"
}, {
name: "Switzerland",
demonym: "Swiss",
flag: flags.CHE,
iso2: "CH",
iso3: "CHE"
name: "Switzerland",
demonym: "Swiss",
flag: flags.CHE,
iso2: "CH",
iso3: "CHE"
}, {
name: "Thailand",
demonym: "Thai",
flag: flags.THA,
iso2: "TH",
iso3: "THA"
name: "Thailand",
demonym: "Thai",
flag: flags.THA,
iso2: "TH",
iso3: "THA"
}, {
name: "Turkey",
demonym: "Turkish",
flag: flags.TUR,
iso2: "TR",
iso3: "TUR"
name: "Turkey",
demonym: "Turkish",
flag: flags.TUR,
iso2: "TR",
iso3: "TUR"
}, {
name: "Ukraine",
demonym: "Ukrainian",
flag: flags.UKR,
iso2: "UA",
iso3: "UKR"
name: "Ukraine",
demonym: "Ukrainian",
flag: flags.UKR,
iso2: "UA",
iso3: "UKR"
}, {
name: "United Kingdom",
altSpellings: ["UK"],
demonym: "British",
flag: flags.GBR,
iso2: "GB",
iso3: "GBR"
name: "United Kingdom",
altSpellings: ["UK"],
demonym: "British",
flag: flags.GBR,
iso2: "GB",
iso3: "GBR"
}, {
name: "United States",
altSpellings: ["USA"],
demonym: "American",
flag: flags.USA,
iso2: "US",
iso3: "USA"
name: "United States",
altSpellings: ["USA"],
demonym: "American",
flag: flags.USA,
iso2: "US",
iso3: "USA"
}, {
name: "United Arab Emirates",
demonym: "Emirati",
flag: flags.ARE,
iso2: "AE",
iso3: "ARE",
altSpellings: ["AE", "UAE"]
name: "United Arab Emirates",
demonym: "Emirati",
flag: flags.ARE,
iso2: "AE",
iso3: "ARE",
altSpellings: ["AE", "UAE"]
}, {
name: "Uruguay",
demonym: "Uruguayan",
flag: flags.URY,
iso2: "UY",
iso3: "URY"
name: "Uruguay",
demonym: "Uruguayan",
flag: flags.URY,
iso2: "UY",
iso3: "URY"
}, {
name: "Venezuela",
demonym: "Venezuelan",
flag: flags.VEN,
iso2: "VE",
iso3: "VEN"
name: "Venezuela",
demonym: "Venezuelan",
flag: flags.VEN,
iso2: "VE",
iso3: "VEN"
}, {
name: "Vietnam",
demonym: "Vietnamese",
flag: flags.VNM,
iso2: "VN",
iso3: "VNM",
altSpellings: ["Viet Nam", "Republic of Viet Nam", "South Vietnam"]
name: "Vietnam",
demonym: "Vietnamese",
flag: flags.VNM,
iso2: "VN",
iso3: "VNM",
altSpellings: ["Viet Nam", "Republic of Viet Nam", "South Vietnam"]
}, {
name: "Zimbabwe",
demonym: "Zimbabwean",
flag: flags.ZWE,
iso2: "ZW",
iso3: "ZWE"
name: "Zimbabwe",
demonym: "Zimbabwean",
flag: flags.ZWE,
iso2: "ZW",
iso3: "ZWE"
}];
module.exports = {
countries: countries,
flagUrls: flags
countries: countries,
flagUrls: flags
};

@@ -14,8 +14,8 @@ "use strict";

module.exports = {
countries: countries,
flagUrls: flagUrls,
findFlagUrlByCountryName: findFlagUrlByCountryName,
findFlagUrlByNationality: findFlagUrlByNationality,
findFlagUrlByIso2Code: findFlagUrlByIso2Code,
findFlagUrlByIso3Code: findFlagUrlByIso3Code
countries: countries,
flagUrls: flagUrls,
findFlagUrlByCountryName: findFlagUrlByCountryName,
findFlagUrlByNationality: findFlagUrlByNationality,
findFlagUrlByIso2Code: findFlagUrlByIso2Code,
findFlagUrlByIso3Code: findFlagUrlByIso3Code
};

@@ -7,39 +7,39 @@ "use strict";

function findFlagUrlByPredicate(countryInfos, predicate) {
var countryInfo = countryInfos.find(predicate) || { flag: "" };
return countryInfo.flag;
var countryInfo = countryInfos.find(predicate) || {
flag: ""
};
return countryInfo.flag;
}
module.exports = {
findFlagUrlByCountryName: function findFlagUrlByCountryName(countryName) {
var flagUrl = findFlagUrlByPredicate(countries, function (_ref) {
var name = _ref.name;
return name.toUpperCase() === countryName.toUpperCase();
}) || findFlagUrlByPredicate(countries, function (_ref2) {
var altSpellings = _ref2.altSpellings;
return altSpellings && altSpellings.some(function (item) {
return item.toUpperCase() === countryName.toUpperCase();
});
});
return flagUrl;
},
findFlagUrlByNationality: function findFlagUrlByNationality(nationality) {
return findFlagUrlByPredicate(countries, function (_ref3) {
var demonym = _ref3.demonym;
return demonym.toUpperCase() === nationality.toUpperCase();
});
},
findFlagUrlByIso2Code: function findFlagUrlByIso2Code(iso2Code) {
return findFlagUrlByPredicate(countries, function (_ref4) {
var iso2 = _ref4.iso2;
return iso2.toUpperCase() === iso2Code.toUpperCase();
});
},
findFlagUrlByIso3Code: function findFlagUrlByIso3Code(iso3Code) {
return findFlagUrlByPredicate(countries, function (_ref5) {
var iso3 = _ref5.iso3;
return iso3.toUpperCase() === iso3Code.toUpperCase();
});
}
findFlagUrlByCountryName: function findFlagUrlByCountryName(countryName) {
var flagUrl = findFlagUrlByPredicate(countries, function (_ref) {
var name = _ref.name;
return name.toUpperCase() === countryName.toUpperCase();
}) || findFlagUrlByPredicate(countries, function (_ref2) {
var altSpellings = _ref2.altSpellings;
return altSpellings && altSpellings.some(function (item) {
return item.toUpperCase() === countryName.toUpperCase();
});
});
return flagUrl;
},
findFlagUrlByNationality: function findFlagUrlByNationality(nationality) {
return findFlagUrlByPredicate(countries, function (_ref3) {
var demonym = _ref3.demonym;
return demonym.toUpperCase() === nationality.toUpperCase();
});
},
findFlagUrlByIso2Code: function findFlagUrlByIso2Code(iso2Code) {
return findFlagUrlByPredicate(countries, function (_ref4) {
var iso2 = _ref4.iso2;
return iso2.toUpperCase() === iso2Code.toUpperCase();
});
},
findFlagUrlByIso3Code: function findFlagUrlByIso3Code(iso3Code) {
return findFlagUrlByPredicate(countries, function (_ref5) {
var iso3 = _ref5.iso3;
return iso3.toUpperCase() === iso3Code.toUpperCase();
});
}
};
{
"name": "country-flags-svg-alpha",
"version": "1.0.4",
"version": "1.0.5",
"description": "A list of countries with url links to a svg image which you can simply use in your web application",

@@ -31,10 +31,12 @@ "main": "dist/index.js",

"devDependencies": {
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.7.0",
"codecov": "^3.0.2",
"coveralls": "^3.0.1",
"jest": "^23.1.0",
"@babel/cli": "7.10.5",
"@babel/core": "7.11.0",
"@babel/preset-env": "7.11.0",
"babel-jest": "26.2.2",
"codecov": "3.7.2",
"coveralls": "3.1.0",
"jest": "23.6.0",
"markdown-magic": "0.1.25",
"pre-commit": "1.2.2",
"rimraf": "^2.6.2"
"rimraf": "2.7.1"
},

@@ -47,5 +49,6 @@ "pre-commit": [

"presets": [
"env"
"@babel/preset-env"
]
}
},
"dependencies": {}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc