Data library containing both ISO3166-1 & ISO3166-2 codes
npm install iso3166-library'data/3166-1/meta.json':
``json`
"AU": {
"alpha-2": "AU",
"alpha-3": "AUD",
"numeric": "036"
}
'data/3166-1/ja.json':
`json`
{
"AU": "オーストラリア"
}
#### 3166-2
The 3166-2 directory contains both ISO3166-2 official Sub-division codes and meta data as well as supported translations both separated by alpha-2 country code and locale. Since it is more common to require the sub-divisions for a specific country this structure avoids the loading of irrelevant data.
'data/3166-2/GB/meta.json':
`json`
{
"GB-SCT": {
"code": "GB-SCT",
"type": "Country"
},
"GB-NLK": {
"code": "GB-NLK",
"type": "Council area",
"parent": "SCT"
}
}
'data/3166-2/GB/ja.json':
`json``
{
"GB-SCT": "スコットランド"
}