Skip to content

SwaglordHabib/ts-currency

Repository files navigation

ts-currency

Based on: https://www.six-group.com/dam/download/financial-information/data-center/iso-currrency/lists/list-one.xml

Date of last update

2024-03-27

Versioning

Each year will have a new version. Changes throughout the year will be minor changes. The Version will be the same as the short year. For example, 2024 will be version 24.

Description

This package contains a list of all currencies in the world. It is based on the ISO 4217 standard. The list is available in JSON format. This also include some helper functions to get the currency name, symbol, code, etc.

If you have any suggestions or improvements, please feel free to open an issue or a pull request. GitHub Issue

Installation

npm install ts-currency
# or
yarn add ts-currency

Usage

import CurrencyData from 'ts-currency';
import {
  CurrencyCodeToNameMap,
  CurrencyCodes,
  CurrencyDataArray,
  CurrencyNameToSymbolMapByLocale,
  CurrencyNames,
} from 'ts-currency';

Coffee?

       ) )
 .- - (-(-.
 '________'_
 |        | )
 |        |/
 '________'