Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

language-icons

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

language-icons

[![NPM](https://img.shields.io/npm/v/language-icons.svg)](https://www.npmjs.com/package/language-icons) ![Icon size](https://img.shields.io/github/size/AnandChowdhary/language-icons/one-color.svg.svg) [![Build](https://img.shields.io/travis/AnandChowdhary

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13K
decreased by-8.44%
Maintainers
1
Weekly downloads
 
Created
Source

🌐 Language icons

NPM Icon size Build Type definitions GitHub Vulnerabilities

Flags are not languages, so we shouldn't use country flags as language icons.

You can use these icons instead.

They are generated using the language's ISO 639-1 code, combined with some colors. Colors are flag-inspired. For example, green/red for Portuguese, and they fallback to blue for unknown colors. If you want to color a currently blue icon, edit the colors.json file and make a pull request.

Each icon is an SVG, around 300 ± 10 bytes.

🖼️ Usage

You can use a CDN like Unpkg to embed a flag icon:

https://unpkg.com/language-icons/icons/LANGUAGE_CODE.svg

In HTML, for example:

<img alt="English" src="https://unpkg.com/language-icons/icons/en.svg">

Icons are also available on NPM:

npm install language-icons

They are in the ./icons folder, you can use an SVG loader to import them:

import English from "./node_modules/language-icons/icons/en.svg"

⭐ Why

Example of flags versus language icons

🎨 Icons

See the list of icons: https://unpkg.com/language-icons@0.2.0/icons/

English Hindi Portuguese German French Chinese Spanish Dutch Urdu

⚒️ Building

Install Typescript dependencies and build icons using the npm run build command.

📝 License

Icons and code, both MIT

FAQs

Package last updated on 11 Oct 2019

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