Socket
Socket
Sign inDemoInstall

currency-icons

Package Overview
Dependencies
0
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    currency-icons

Icons for all currencies


Version published
Weekly downloads
291
decreased by-0.68%
Maintainers
1
Install size
144 kB
Created
Weekly downloads
 

Readme

Source

currency-icons

All currency data is directly sourced from this wikipedia page.

Icons are generated using Noto Sans Light.

Generate

poetry install
poetry shell
python generate-icons.py
npm run build

Use

import icons from 'currency-icons';

console.log(icons["GBP"])
{
  "name": "British pound",
  "icon": "data:image/png;base64,iVBORw0KGgoAAAANS..."
}

Why use this package

  • Others are not up-to-date or are incorrect
  • This is the only package that provides images, this is important because if you display currency symbols directly to your users, some of the currency symbols will be displayed as tofu (those ugly boxes) because the end user isn't using a font that supports those glyphs.

Keywords

FAQs

Last updated on 27 Jul 2020

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