1.0.14 • Published 4 years ago

currency-icons v1.0.14

Weekly downloads
81
License
MIT
Repository
github
Last release
4 years ago

Currency Icons

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

Samples

CodeNameSymbolIcon
GBPBritish pound£pound
EUREuronpm.io
CZKCzech korunanpm.io
ANGNetherlands Antillean guilderƒnpm.io
NPRNepalese rupeeरूnpm.io

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

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.10

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago