JSPM

@cryptohub/countries-divisions-alpha3

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q37867F
  • License CORE

A comprehensive JSON module containing primary administrative divisions for countries based on the ISO 3166-1 Alpha-3 standard.

Package Exports

  • @cryptohub/countries-divisions-alpha3
  • @cryptohub/countries-divisions-alpha3/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@cryptohub/countries-divisions-alpha3) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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 @cryptohub/countries-divisions-alpha3

Usage

Once installed, you can require it in your JavaScript/Node.js project:

const countriesDivisions = require('@cryptohub/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

  1. Fork the repository.
  2. Clone your fork.
  3. Create a new branch.
  4. Make your changes.
  5. Commit and push your changes.
  6. Create a pull request.