currency-icons
TypeScript icon, indicating that this package has built-in type declarations

1.0.14 • Public • Published

Currency Icons

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

Samples

Code Name Symbol Icon
GBP British pound £ pound
EUR Euro
CZK Czech koruna
ANG Netherlands Antillean guilder ƒ
NPR Nepalese 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

Dependents (1)

Package Sidebar

Install

npm i currency-icons

Weekly Downloads

200

Version

1.0.14

License

MIT

Unpacked Size

150 kB

Total Files

4

Last publish

Collaborators

  • corollari