Socket
Socket
Sign inDemoInstall

country-flag-icons

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

country-flag-icons

Vector (*.svg) country flag icons in 3x2 aspect ratio.


Version published
Weekly downloads
650K
decreased by-16.5%
Maintainers
1
Weekly downloads
 
Created

What is country-flag-icons?

The country-flag-icons npm package provides a collection of SVG country flags that can be easily integrated into web applications. It allows developers to display country flags by using simple class names.

What are country-flag-icons's main functionalities?

Display a country flag

This feature allows you to display the flag of a specific country by using a class name. In this example, the flag of the United States is displayed.

<i class='flag-icon flag-icon-us'></i>

Change flag size

This feature allows you to change the size and shape of the flag. In this example, the flag of the United States is displayed in a squared format.

<i class='flag-icon flag-icon-us flag-icon-squared'></i>

Use with different frameworks

The package can be used with various front-end frameworks like React, Angular, and Vue. The code sample shows how to use it in a plain HTML setup, but it can be easily adapted for other frameworks.

<i class='flag-icon flag-icon-us'></i>

Other packages similar to country-flag-icons

Keywords

FAQs

Package last updated on 24 Jan 2022

Did you know?

Socket

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.

Install

Related posts

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