Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
country-flags-svg-alpha
Advanced tools
A list of countries with url links to a svg image which you can simply use in your web application
A list of countries with url links to a svg image which you can simply use in your web application
$ npm install country-flags-svg
or
$ yarn add country-flags-svg
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",
}
*/
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
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 |
Licensed under MIT.
FAQs
A list of countries with url links to a svg image which you can simply use in your web application
The npm package country-flags-svg-alpha receives a total of 0 weekly downloads. As such, country-flags-svg-alpha popularity was classified as not popular.
We found that country-flags-svg-alpha demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.