cfs

country-flags-svg

A list of countries with url links to a svg image which you can simply use in your web application

Showing:

Popularity

Downloads/wk

2.9K

GitHub Stars

15

Maintenance

Last Commit

1mo ago

Contributors

6

Package

Dependencies

0

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

country-flags-svg

A list of countries with url links to a svg image which you can simply use in your web application

NPM

Travis Coveralls npm

Install

$ npm install country-flags-svg

or

$ yarn add country-flags-svg

Usage

import { findFlagUrlByNationality } from "country-flags-svg";

const flagUrl = findFlagUrlByNationality("Australian");
// => "http://upload.wikimedia.org/wikipedia/commons/8/88/Flag_of_Australia_%28converted%29.svg"

import { countries } from "country-flags-svg";

const australia = countries[0];

console.log(australia);
/* => {
        name: "Australia",
        demonym: "Australian",
        flag: "http://upload.wikimedia.org/wikipedia/commons/8/88/Flag_of_Australia_%28converted%29.svg",
        iso2: "AU",
        iso3: "AUS",
    }
*/

API

countries

Returns all available information.

findFlagUrlByCountryName(countryName)

Returns SVG link of the official flag for a specified country (according to countryName) or empty string if is not exist

findFlagUrlByNationality(nationality)

Returns SVG link of the official flag for a specified country (according to nationality) or empty string if is not exist

findFlagUrlByIso2Code(iso2Code)

Returns SVG link of the official flag for a specified country (according to ISO 3166-1 alpha-2 code) or empty string if is not exist

findFlagUrlByIso3Code(iso3Code)

Returns SVG link of the official flag for a specified country (according to ISO 3166-1 alpha-3 code) or empty string if is not exist

Available Flags*

Afghanistan
Flag of Afghanistan
Aland Islands
Flag of Aland Islands
Albania
Flag of Albania
Algeria
Flag of Algeria
American Samoa
Flag of American Samoa
Andorra
Flag of Andorra
Angola
Flag of Angola
Anguilla
Flag of Anguilla
Antigua and Barbuda
Flag of Antigua and Barbuda
Argentina
Flag of Argentina
Armenia
Flag of Armenia
Aruba
Flag of Aruba
Australia
Flag of Australia
Austria
Flag of Austria
Azerbaijan
Flag of Azerbaijan
Bahamas
Flag of Bahamas
Bahrain
Flag of Bahrain
Bangladesh
Flag of Bangladesh
Barbados
Flag of Barbados
Belarus
Flag of Belarus
Belgium
Flag of Belgium
Belize
Flag of Belize
Benin
Flag of Benin
Bermuda
Flag of Bermuda
Bhutan
Flag of Bhutan
Bolivia
Flag of Bolivia
Bonaire, Sint Eustatius and Saba
Flag of Bonaire, Sint Eustatius and Saba
Bosnia and Herzegovina
Flag of Bosnia and Herzegovina
Botswana
Flag of Botswana
Brazil
Flag of Brazil
British Virgin Islands
Flag of British Virgin Islands
Brunei
Flag of Brunei
Bulgaria
Flag of Bulgaria
Burkina Faso
Flag of Burkina Faso
Burundi
Flag of Burundi
Cambodia
Flag of Cambodia
Cameroon
Flag of Cameroon
Canada
Flag of Canada
Cape Verde
Flag of Cape Verde
Cayman Islands
Flag of Cayman Islands
Central African Republic
Flag of Central African Republic
Chad
Flag of Chad
Chile
Flag of Chile
China
Flag of China
Christmas Island
Flag of Christmas Island
Cocos Islands
Flag of Cocos Islands
Colombia
Flag of Colombia
Comoros
Flag of Comoros
Congo
Flag of Congo
Cook Islands
Flag of Cook Islands
Costa Rica
Flag of Costa Rica
Côte d'Ivoire
Flag of Côte d'Ivoire
Croatia
Flag of Croatia
Cuba
Flag of Cuba
Curaçao
Flag of Curaçao
Cyprus
Flag of Cyprus
Czech Republic
Flag of Czech Republic
Democratic Republic of the Congo
Flag of Democratic Republic of the Congo
Denmark
Flag of Denmark
Djibouti
Flag of Djibouti
Dominica
Flag of Dominica
Dominican Republic
Flag of Dominican Republic
Ecuador
Flag of Ecuador
Egypt
Flag of Egypt
El Salvador
Flag of El Salvador
Equatorial Guinea
Flag of Equatorial Guinea
Eritrea
Flag of Eritrea
Estonia
Flag of Estonia
Ethiopia
Flag of Ethiopia
Falkland Islands
Flag of Falkland Islands
Faroe Islands
Flag of Faroe Islands
Fiji
Flag of Fiji
Finland
Flag of Finland
France
Flag of France
French Guiana
Flag of French Guiana
French Polynesia
Flag of French Polynesia
Gabon
Flag of Gabon
Gambia
Flag of Gambia
Georgia
Flag of Georgia
Germany
Flag of Germany
Ghana
Flag of Ghana
Gibraltar
Flag of Gibraltar
Greece
Flag of Greece
Greenland
Flag of Greenland
Grenada
Flag of Grenada
Guadeloupe
Flag of Guadeloupe
Guam
Flag of Guam
Guatemala
Flag of Guatemala
Guernsey
Flag of Guernsey
Guinea-Bissau
Flag of Guinea-Bissau
Guinea
Flag of Guinea
Guyana
Flag of Guyana
Haiti
Flag of Haiti
Holy See
Flag of Holy See
Honduras
Flag of Honduras
Hong Kong
Flag of Hong Kong
Hungary
Flag of Hungary
Iceland
Flag of Iceland
India
Flag of India
Indonesia
Flag of Indonesia
Iran
Flag of Iran
Iraq
Flag of Iraq
Ireland
Flag of Ireland
Isle of Man
Flag of Isle of Man
Israel
Flag of Israel
Italy
Flag of Italy
Jamaica
Flag of Jamaica
Japan
Flag of Japan
Jersey
Flag of Jersey
Jordan
Flag of Jordan
Kazakhstan
Flag of Kazakhstan
Kenya
Flag of Kenya
Kiribati
Flag of Kiribati
Kosovo
Flag of Kosovo
Kuwait
Flag of Kuwait
Kyrgyzstan
Flag of Kyrgyzstan
Laos
Flag of Laos
Latvia
Flag of Latvia
Lebanon
Flag of Lebanon
Lesotho
Flag of Lesotho
Liberia
Flag of Liberia
Libya
Flag of Libya
Liechtenstein
Flag of Liechtenstein
Lithuania
Flag of Lithuania
Luxembourg
Flag of Luxembourg
Macao
Flag of Macao
Madagascar
Flag of Madagascar
Malawi
Flag of Malawi
Malaysia
Flag of Malaysia
Maldives
Flag of Maldives
Mali
Flag of Mali
Malta
Flag of Malta
Marshall Islands
Flag of Marshall Islands
Martinique
Flag of Martinique
Mauritania
Flag of Mauritania
Mauritius
Flag of Mauritius
Mayotte
Flag of Mayotte
Mexico
Flag of Mexico
Micronesia
Flag of Micronesia
Moldova
Flag of Moldova
Monaco
Flag of Monaco
Mongolia
Flag of Mongolia
Montenegro
Flag of Montenegro
Montserrat
Flag of Montserrat
Morocco
Flag of Morocco
Mozambique
Flag of Mozambique
Myanmar
Flag of Myanmar
Namibia
Flag of Namibia
Nauru
Flag of Nauru
Nepal
Flag of Nepal
Netherlands Antilles
Flag of Netherlands Antilles
Netherlands
Flag of Netherlands
New Caledonia
Flag of New Caledonia
New Zealand
Flag of New Zealand
Nicaragua
Flag of Nicaragua
Niger
Flag of Niger
Nigeria
Flag of Nigeria
Niue
Flag of Niue
Norfolk Island
Flag of Norfolk Island
North Korea
Flag of North Korea
North Macedonia
Flag of North Macedonia
Northern Mariana Islands
Flag of Northern Mariana Islands
Norway
Flag of Norway
Oman
Flag of Oman
Pakistan
Flag of Pakistan
Palau
Flag of Palau
Palestine
Flag of Palestine
Panama
Flag of Panama
Papua New Guinea
Flag of Papua New Guinea
Paraguay
Flag of Paraguay
Peru
Flag of Peru
Philippines
Flag of Philippines
Pitcairn
Flag of Pitcairn
Poland
Flag of Poland
Portugal
Flag of Portugal
Puerto Rico
Flag of Puerto Rico
Qatar
Flag of Qatar
Réunion
Flag of Réunion
Romania
Flag of Romania
Russia
Flag of Russia
Rwanda
Flag of Rwanda
Saint Barthélemy
Flag of Saint Barthélemy
Saint Helena, Ascension and Tristan da Cunha
Flag of Saint Helena, Ascension and Tristan da Cunha
Saint Kitts and Nevis
Flag of Saint Kitts and Nevis
Saint Lucia
Flag of Saint Lucia
Saint Martin
Flag of Saint Martin
Saint Pierre and Miquelon
Flag of Saint Pierre and Miquelon
Saint Vincent and the Grenadines
Flag of Saint Vincent and the Grenadines
Samoa
Flag of Samoa
San Marino
Flag of San Marino
Sao Tome and Principe
Flag of Sao Tome and Principe
Saudi Arabia
Flag of Saudi Arabia
Senegal
Flag of Senegal
Serbia
Flag of Serbia
Seychelles
Flag of Seychelles
Sierra Leone
Flag of Sierra Leone
Singapore
Flag of Singapore
Sint Maarten
Flag of Sint Maarten
Slovakia
Flag of Slovakia
Slovenia
Flag of Slovenia
Solomon Islands
Flag of Solomon Islands
Somalia
Flag of Somalia
South Africa
Flag of South Africa
South Georgia and the South Sandwich Islands
Flag of South Georgia and the South Sandwich Islands
South Korea
Flag of South Korea
South Sudan
Flag of South Sudan
Spain
Flag of Spain
Sri Lanka
Flag of Sri Lanka
Sudan
Flag of Sudan
Suriname
Flag of Suriname
Svalbard and Jan Mayen
Flag of Svalbard and Jan Mayen
Swaziland
Flag of Swaziland
Sweden
Flag of Sweden
Switzerland
Flag of Switzerland
Syria
Flag of Syria
Taiwan
Flag of Taiwan
Tajikistan
Flag of Tajikistan
Tanzania
Flag of Tanzania
Thailand
Flag of Thailand
Timor-Leste
Flag of Timor-Leste
Togo
Flag of Togo
Tokelau
Flag of Tokelau
Tonga
Flag of Tonga
Trinidad and Tobago
Flag of Trinidad and Tobago
Tunisia
Flag of Tunisia
Turkey
Flag of Turkey
Turkmenistan
Flag of Turkmenistan
Turks and Caicos Islands
Flag of Turks and Caicos Islands
Tuvalu
Flag of Tuvalu
Uganda
Flag of Uganda
Ukraine
Flag of Ukraine
United Arab Emirates
Flag of United Arab Emirates
United Kingdom
Flag of United Kingdom
United States Minor Outlying Islands
Flag of United States Minor Outlying Islands
United States
Flag of United States
Uruguay
Flag of Uruguay
Uzbekistan
Flag of Uzbekistan
Vanuatu
Flag of Vanuatu
Venezuela
Flag of Venezuela
Vietnam
Flag of Vietnam
Virgin Islands of the United States
Flag of Virgin Islands of the United States
Wallis and Futuna
Flag of Wallis and Futuna
Western Sahara
Flag of Western Sahara
Yemen
Flag of Yemen
Zambia
Flag of Zambia
Zimbabwe
Flag of Zimbabwe
* - if not enough don't be shy and provide merge request ;)

License

Licensed under MIT.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial