Skip to content

Instantly share code, notes, and snippets.

@PoOwAa
Created October 2, 2018 19:42
Show Gist options
  • Save PoOwAa/e189ee1c4bfec4dffe979c2c1b2c30f9 to your computer and use it in GitHub Desktop.
Save PoOwAa/e189ee1c4bfec4dffe979c2c1b2c30f9 to your computer and use it in GitHub Desktop.
A TypeScript enum of ISO 4217 Currency Codes with description
/**
* Copyright 2018, Raymund Ács
*
* Permission is hereby granted, free of charge, to any
* person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the
* Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute,
* sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall
* be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
enum CurrencyCode {
AED = "United Arab Emirates Dirham",
AFN = "Afghanistan Afghani",
ALL = "Albania Lek",
AMD = "Armenia Dram",
ANG = "Netherlands Antilles Guilder",
AOA = "Angola Kwanza",
ARS = "Argentina Peso",
AUD = "Australia Dollar",
AWG = "Aruba Guilder",
AZN = "Azerbaijan New Manat",
BAM = "Bosnia and Herzegovina Convertible Marka",
BBD = "Barbados Dollar",
BDT = "Bangladesh Taka",
BGN = "Bulgaria Lev",
BHD = "Bahrain Dinar",
BIF = "Burundi Franc",
BMD = "Bermuda Dollar",
BND = "Brunei Darussalam Dollar",
BOB = "Bolivia Bolíviano",
BRL = "Brazil Real",
BSD = "Bahamas Dollar",
BTN = "Bhutan Ngultrum",
BWP = "Botswana Pula",
BYR = "Belarus Ruble",
BZD = "Belize Dollar",
CAD = "Canada Dollar",
CDF = "Congo/Kinshasa Franc",
CHF = "Switzerland Franc",
CLP = "Chile Peso",
CNY = "China Yuan Renminbi",
COP = "Colombia Peso",
CRC = "Costa Rica Colon",
CUC = "Cuba Convertible Peso",
CUP = "Cuba Peso",
CVE = "Cape Verde Escudo",
CZK = "Czech Republic Koruna",
DJF = "Djibouti Franc",
DKK = "Denmark Krone",
DOP = "Dominican Republic Peso",
DZD = "Algeria Dinar",
EGP = "Egypt Pound",
ERN = "Eritrea Nakfa",
ETB = "Ethiopia Birr",
EUR = "Euro Member Countries",
FJD = "Fiji Dollar",
FKP = "Falkland Islands = Malvinas Pound",
GBP = "United Kingdom Pound",
GEL = "Georgia Lari",
GGP = "Guernsey Pound",
GHS = "Ghana Cedi",
GIP = "Gibraltar Pound",
GMD = "Gambia Dalasi",
GNF = "Guinea Franc",
GTQ = "Guatemala Quetzal",
GYD = "Guyana Dollar",
HKD = "Hong Kong Dollar",
HNL = "Honduras Lempira",
HRK = "Croatia Kuna",
HTG = "Haiti Gourde",
HUF = "Hungary Forint",
IDR = "Indonesia Rupiah",
ILS = "Israel Shekel",
IMP = "Isle of Man Pound",
INR = "India Rupee",
IQD = "Iraq Dinar",
IRR = "Iran Rial",
ISK = "Iceland Krona",
JEP = "Jersey Pound",
JMD = "Jamaica Dollar",
JOD = "Jordan Dinar",
JPY = "Japan Yen",
KES = "Kenya Shilling",
KGS = "Kyrgyzstan Som",
KHR = "Cambodia Riel",
KMF = "Comoros Franc",
KPW = "Korea = North Won",
KRW = "Korea = South Won",
KWD = "Kuwait Dinar",
KYD = "Cayman Islands Dollar",
KZT = "Kazakhstan Tenge",
LAK = "Laos Kip",
LBP = "Lebanon Pound",
LKR = "Sri Lanka Rupee",
LRD = "Liberia Dollar",
LSL = "Lesotho Loti",
LYD = "Libya Dinar",
MAD = "Morocco Dirham",
MDL = "Moldova Leu",
MGA = "Madagascar Ariary",
MKD = "Macedonia Denar",
MMK = "Myanmar = Burma Kyat",
MNT = "Mongolia Tughrik",
MOP = "Macau Pataca",
MRO = "Mauritania Ouguiya",
MUR = "Mauritius Rupee",
MVR = "Maldives = Maldive Islands Rufiyaa",
MWK = "Malawi Kwacha",
MXN = "Mexico Peso",
MYR = "Malaysia Ringgit",
MZN = "Mozambique Metical",
NAD = "Namibia Dollar",
NGN = "Nigeria Naira",
NIO = "Nicaragua Cordoba",
NOK = "Norway Krone",
NPR = "Nepal Rupee",
NZD = "New Zealand Dollar",
OMR = "Oman Rial",
PAB = "Panama Balboa",
PEN = "Peru Sol",
PGK = "Papua New Guinea Kina",
PHP = "Philippines Peso",
PKR = "Pakistan Rupee",
PLN = "Poland Zloty",
PYG = "Paraguay Guarani",
QAR = "Qatar Riyal",
RON = "Romania New Leu",
RSD = "Serbia Dinar",
RUB = "Russia Ruble",
RWF = "Rwanda Franc",
SAR = "Saudi Arabia Riyal",
SBD = "Solomon Islands Dollar",
SCR = "Seychelles Rupee",
SDG = "Sudan Pound",
SEK = "Sweden Krona",
SGD = "Singapore Dollar",
SHP = "Saint Helena Pound",
SLL = "Sierra Leone Leone",
SOS = "Somalia Shilling",
SPL = "Seborga Luigino",
SRD = "Suriname Dollar",
STD = "São Tomé and Príncipe Dobra",
SVC = "El Salvador Colon",
SYP = "Syria Pound",
SZL = "Swaziland Lilangeni",
THB = "Thailand Baht",
TJS = "Tajikistan Somoni",
TMT = "Turkmenistan Manat",
TND = "Tunisia Dinar",
TOP = "Tonga Pa'anga",
TRY = "Turkey Lira",
TTD = "Trinidad and Tobago Dollar",
TVD = "Tuvalu Dollar",
TWD = "Taiwan New Dollar",
TZS = "Tanzania Shilling",
UAH = "Ukraine Hryvnia",
UGX = "Uganda Shilling",
USD = "United States Dollar",
UYU = "Uruguay Peso",
UZS = "Uzbekistan Som",
VEF = "Venezuela Bolivar",
VND = "Viet Nam Dong",
VUV = "Vanuatu Vatu",
WST = "Samoa Tala",
XAF = "Communauté Financière Africaine = BEAC CFA Franc BEAC",
XCD = "East Caribbean Dollar",
XDR = "International Monetary Fund = IMF Special Drawing Rights",
XOF = "Communauté Financière Africaine = BCEAO Franc",
XPF = "Comptoirs Français du Pacifique = CFP Franc",
YER = "Yemen Rial",
ZAR = "South Africa Rand",
ZMW = "Zambia Kwacha",
ZWD = "Zimbabwe Dollar"
}
@qnp
Copy link

qnp commented Oct 13, 2023

It seems that "BOV", "BYN", "CHE", "CHW", "CLF", "COU", "EEK", "GHC", "LTL", "LVL", "MRU", "MXV", "SSP", "TRL", "UYI", "UYW", "VES", "XSU", "XUA", and "ZWL", are missing, see https://en.wikipedia.org/wiki/ISO_4217
I know some of them are outdated (e.g. they moved to EUR) but for completeness...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment