Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules
package-lock.json

*.tgz
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ console.log(cc.countries());
## data

``` js
var data = require('currency-codes/data');
var data = require('currency-codes/data.json');
console.log(data);

/*
Expand Down
31 changes: 11 additions & 20 deletions data.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Follows ISO 4217, https://www.iso.org/iso-4217-currency-codes.html
See https://www.currency-iso.org/dam/downloads/lists/list_one.xml
Data last updated 2024-06-25
Data last updated 2025-03-31
*/

module.exports = [
Expand Down Expand Up @@ -41,16 +41,6 @@ module.exports = [
"Armenia"
]
},
{
"code": "ANG",
"number": "532",
"digits": 2,
"currency": "Netherlands Antillean Guilder",
"countries": [
"Curaçao",
"Sint Maarten (Dutch Part)"
]
},
{
"code": "AOA",
"number": "973",
Expand Down Expand Up @@ -347,15 +337,6 @@ module.exports = [
"Costa Rica"
]
},
{
"code": "CUC",
"number": "931",
"digits": 2,
"currency": "Peso Convertible",
"countries": [
"Cuba"
]
},
{
"code": "CUP",
"number": "192",
Expand Down Expand Up @@ -1586,6 +1567,16 @@ module.exports = [
"Saint Vincent and the Grenadines"
]
},
{
"code": "XCG",
"number": "532",
"digits": 2,
"currency": "Caribbean Guilder",
"countries": [
"Curaçao",
"Sint Maarten (Dutch Part)"
]
},
{
"code": "XDR",
"number": "960",
Expand Down
Loading