Socket
Socket
Sign inDemoInstall

countries-flag

Package Overview
Dependencies
0
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    countries-flag

![build](https://github.com/freeshineit/countries-flag/workflows/Build/badge.svg) ![Download](https://img.shields.io/npm/dm/countries-flag.svg) ![Version](https://img.shields.io/npm/v/countries-flag.svg) ![License](https://img.shields.io/npm/l/countries-f


Version published
Maintainers
1
Created

Readme

Source

Countries Flag

build Download Version License

全球各国国旗,支持国家电话区号ISO 3166-1

https://freeshineit.github.io/countries-flag

https://freeshineit.github.io/countries-flag/index-code.html

https://freeshineit.github.io/countries-flag/index-64.html

https://freeshineit.github.io/countries-flag/index-code-64.html

demo

demo

Install

With NPM

npm install countries-flag

With Yarn

yarn install countries-flag

Use

CSS

/* 32px */
@import 'countries-flag';

/* 64px */
/* @import 'countries-flag/lib/flags-64.css' */

.flag {
   /* webpack */
  background-image: url(~countries-flag/lib/flags.png);
   /* background-image: url(~countries-flag/lib/flags-64.png); */
}

Sass

/* 32px */
@import 'countries-flag/index.scss';

/* 64px */
/* @import 'countries-flag/lib/flags-64.scss' */

.flag {
   /*  webpack */
   background-image: url(~countries-flag/lib/flags.png);
   // background-image: url(~countries-flag/lib/flags-64.png);
}

HTML

    <!-- China flag -->
    <span class='flag flag-cn'></span>

   <!-- support phone code -->
   <!-- @import 'countries-flag/lib/flags-iso-code.css' or @import 'countries-flag/lib/flags-code.css'-->
    <span class='flag flag-86'></span>

Keywords

FAQs

Last updated on 20 Nov 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc