country-flags-svg-alpha !!! Do not use me !!!
A list of countries with url links to a svg image which you can simply use in your web application
Install
$ npm install country-flags-svg
or
$ yarn add country-flags-svg
Usage
; const flagUrl = ;// => "http://upload.wikimedia.org/wikipedia/commons/8/88/Flag_of_Australia_%28converted%29.svg"
; const australia = countries0; console;/* => { 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*
Aruba | Australia | Austria | Azerbaijan | Bangladesh | Bahrain | Belgium |
Brazil | Canada | Chile | China | Colombia | Croatia | Cyprus |
Czech Republic | Denmark | Europe | Estonia | Fiji | Finland | France |
Germany | Greece | Hong Kong | Hungary | India | Indonesia | Ireland |
Italy | Japan | Latvia | Liechtenstein | Lithuania | Luxembourg | Malaysia |
Mauritius | Mexico | Monaco | Montenegro | Nepal | Netherlands | New Zealand |
Norway | Panama | Philippines | Poland | Portugal | Russia | Singapore |
Sri Lanka | Slovakia | Slovenia | South Africa | South Korea | Spain | Sweden |
Switzerland | Thailand | Turkey | Ukraine | United Kingdom | United States | United Arab Emirates |
Uruguay | Venezuela | Vietnam | Zimbabwe |
License
Licensed under MIT.