diff --git a/generate.js b/generate.js index f2f42a9..8865ade 100644 --- a/generate.js +++ b/generate.js @@ -85,6 +85,8 @@ const inclusionsOrFixes = [ { countryCode: 'NE', currencyCode: 'XOF' }, // Republic of the Congo (CG) uses 'Central African CFA Franc' (XAF), according to Wikipedia. Thanks @jasongitmail { countryCode: 'CG', currencyCode: 'XAF' }, + // Dominican Republic (DM) uses 'East Caribbean Dollar' (XCD), according to Wikipedia. Thanks @jasongitmail + { countryCode: 'DM', currencyCode: 'XCD' }, ]; let inclusions = 0; diff --git a/index.ts b/index.ts index 243d65f..9d71bbf 100644 --- a/index.ts +++ b/index.ts @@ -60,7 +60,7 @@ const countryToCurrency = { DE: 'EUR', DJ: 'DJF', DK: 'DKK', - DM: 'DOP', + DM: 'XCD', DO: 'DOP', DZ: 'DZD', EC: 'USD', diff --git a/readme.md b/readme.md index 4da697b..8e447fb 100644 --- a/readme.md +++ b/readme.md @@ -75,6 +75,7 @@ console.log( countryToCurrency[ 'US' ] ); // USD - For `Chile` (`CLF`), the currency `CLP` is being assumed. - For `Croatia` (`HR`), the currency `EUR` is being assumed since January 1st, 2023. - For `Cuba` (`CU`), the currency `CUP` is being assumed since 2021. +- For `Dominican Republic` (`DM`), the currency `XCD` is being assumed. - For `El Salvador` (`SV`), the currency `USD` is being assumed. - For `Hungary` (`HU`), the currency `HUF` is being assumed. - For `Niger` (`NE`), the currency `XOF` is being assumed.