Skip to content

Commit

Permalink
release: v3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgurg authored Jul 8, 2024
2 parents b6d4af8 + d6a908c commit ff26354
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "google-currency-scraper",
"version": "3.0.1",
"version": "3.1.0",
"description": "Scrape extremely up-to-date exchange rates from Google fast and for free, with only one external dependency.",
"license": "MIT",
"type": "module",
Expand Down
23 changes: 19 additions & 4 deletions src/utils/currency-code.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
* ISO 4217 currency codes
* Source: https://en.wikipedia.org/wiki/ISO_4217
*
* @typedef {Object<string, string>} CurrencyCode
*/
const CurrencyCode = {
// https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes
AED: "AED",
AFN: "AFN",
ALL: "ALL",
Expand Down Expand Up @@ -184,7 +182,24 @@ const CurrencyCode = {
YER: "YER",
ZAR: "ZAR",
ZMW: "ZMW",
ZWL: "ZWL"
ZWL: "ZWL",

// https://en.wikipedia.org/wiki/ISO_4217#Non_ISO_4217_currencies
BDS: "BDS",
CNH: "CNH",
CNT: "CNT",
GGP: "GGP",
IMP: "IMP",
JEP: "JEP",
KID: "KID",
NIS: "NIS",
NTD: "NTD",
PRB: "PRB",
SLS: "SLS",
STG: "STG",
RMB: "RMB",
TVD: "TVD",
ZWB: "ZWB"
};

/**
Expand Down

0 comments on commit ff26354

Please sign in to comment.