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
309
increased by28.75%
Maintainers
1
Install size
147 kB
Created
Weekly downloads
 

Readme

Source

Currency Icons

Icons for all circulating currencies in the world, generated from Wikipedia data. Now with automatic weekly updates!

Samples

CodeNameSymbolIcon
GBPBritish pound£pound
EUREuro
CZKCzech koruna
ANGNetherlands Antillean guilderƒ
NPRNepalese rupeeरू

Sources

  • Currency data comes from this wikipedia page.
  • Icons are generated using the Noto Sans Light font.

Generate

poetry install
npm install
npm run build

Use

import icons from 'currency-icons';

console.log(icons["GBP"])
{
  "name": "British pound",
  "symbol": "£",
  "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.

License

Keywords

FAQs

Last updated on 28 Sep 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