@blockchainhub/countries-divisions-alpha3
v1.0.1
Published
A comprehensive JSON module containing primary administrative divisions for countries based on the ISO 3166-1 Alpha-3 standard.
Downloads
12
Maintainers
Readme
Countries Divisions
A comprehensive JSON module containing primary administrative divisions for countries based on the ISO 3166-1 Alpha-3 standard.
Installation
To use this module in your project, you can install it via npm:
npm install @blockchainhub/countries-divisions-alpha3
Usage
Once installed, you can require
it in your JavaScript/Node.js project:
const countriesDivisions = require('@blockchainhub/countries-divisions-alpha3');
console.log(countriesDivisions['USA']); // Example output: { type_en: "State", type_local: "State" }
Data Structure
The module exports a JSON object with the structure:
{
"ISO_3166-1_Alpha-3_Code": {
"type_en": "Division Name in English",
"type_local": "Division Name in Local Language"
},
…
}
For example:
{
"USA": {
"type_en": "State",
"type_local": "State"
},
…
}
Exclusions
The following countries are excluded from the list due to lack of divisions:
- GIB (Gibraltar)
- MAF (Saint Martin (French part))
- NFK (Norfolk Island)
- SPM (Saint Pierre and Miquelon)
- VAT (Holy See (Vatican City State))
License
This project is licensed under the CORE License. Please see the LICENSE file for more details.
Contributing
- Fork the repository.
- Clone your fork.
- Create a new branch.
- Make your changes.
- Commit and push your changes.
- Create a pull request.