thiagodp / country-to-currency Goto Github PK
View Code? Open in Web Editor NEW💵 Maps country codes (ISO 3166-1-alpha-2) to their default currency codes (ISO 4217)
License: MIT License
💵 Maps country codes (ISO 3166-1-alpha-2) to their default currency codes (ISO 4217)
License: MIT License
Currently has typo of DOP
, which is the Dominican Republic's peso.
Should be XCD (East Caribbean Dollar) https://en.wikipedia.org/wiki/Dominica
The default currency of CH (Switzerland) is not CHE, but CHF.
Hi,
the list maps country Niger (NE) to currency "Naira" (ISO code NGN) of Nigeria. The correct currency would be "West African CFA Franc" (ISO code XOF).
'KR' country code means that South Korea.
Currency code of South Korea is 'KRW' (https://en.wikipedia.org/wiki/ISO_4217)
But 'KR' country code was mapped 'KPW'.
('KPW' means that North Korea.)
From HR: 'HUF',
(which is the Hungarian Forint and was supposed to be HRK
for the Croatian Kuna) to HR: 'EUR',
.
HRK was replaced with Euro 2023-01-01 https://en.wikipedia.org/wiki/ISO_4217
Netherlands Antilles (AN or ANT country code) are not returning any currency.
I receive a typing error when trying to pass in a value which can be "TR" as the index value. On inspection, it seems that TR is missing from the index.d.ts file, despite "TR" being present in index.ts.
Thanks for your helpful library!
I encountered a little bug. Region GS (South Georgia and the South Sandwich Islands) is a British overseas territory and unrelated to the country Georgia.
Here it incorrectly maps to GEL (Georgian Lari) but shoud map to either:
I think GBP would be more reasonable.
This one is unclear, but it sounds like both are circulating in the country and they are transitioning to SLE
. Using SLE
would be more future proof in that case.
The Wikipedia page for Sierra Leone has the old Sierra Leone leon (SLL).
ChatGPT:
"Sierra Leone uses two currency codes: SLL for the old Leone and SLE for the new Leone. In 2021, it was announced that a new
Leone (SLE) would be introduced, worth 1,000 old Leones (SLL). This new Leone was introduced in July 2022, and both the old Leone (SLL) and new Leone (SLE) remained legal tender during the transition period. As of April 2023, both currencies were still in circulation, with the new Leone being the primary currency.""Additionally, the European Union's Interinstitutional Style Guide confirms that Sierra Leone has two currencies in circulation, SLE and SLL, as part of the ISO 4217 codes. This reflects the ongoing transition from the old Leone to the new Leone, with both currencies being used simultaneously during the transition period."
El Salvador migrated to USD back in 2001: https://en.wikipedia.org/wiki/Salvadoran_col%C3%B3n#:~:text=The%20colon%20was%20the%20currency,the%20presidency%20of%20Francisco%20Flores.
Currently it returns SVC as result for this country
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.