Skip to the content

Kuni国

Look up countries, codes, names and subdivisions, load country data on demand and mount a native country card.

Kuni (国) is Japanese for a country. About the name

Contents

Reference · All subdivisions

SUBDIVISION_TYPESconstant

The kinds of subdivision, in kebab case. Most are read from what Wikidata says each place is an instance of; Japan's four come from the last character of the prefecture's name.

Import it

import { SUBDIVISION_TYPES } from "@johnmorrisdotca/kuni/subdivisions";

Definition

const SUBDIVISION_TYPES: readonly ["atoll", "autonomous-community", "autonomous-region", "borough", "canton", "capital-district", "circuit", "city", "council-area", "country", "county", "department", "district", "division", "emirate", "governorate", "island", "krai", "metropolis", "municipality", "oblast", "parish", "prefecture", "principal-area", "province", "quarter", "region", "republic", "special-administrative-region", "state", "territory", "unitary-authority", "urban-prefecture", "voivodeship", "zone"] = [
    "atoll",
    "autonomous-community",
    "autonomous-region",
    "borough",
    "canton",
    "capital-district",
    "circuit",
    "city",
    "council-area",
    "country",
    "county",
    "department",
    "district",
    "division",
    "emirate",
    "governorate",
    "island",
    "krai",
    "metropolis",
    "municipality",
    "oblast",
    "parish",
    "prefecture",
    "principal-area",
    "province",
    "quarter",
    "region",
    "republic",
    "special-administrative-region",
    "state",
    "territory",
    "unitary-authority",
    "urban-prefecture",
    "voivodeship",
    "zone",
] as const

Examples

import { SUBDIVISION_TYPES } from "@johnmorrisdotca/kuni/subdivisions";

console.log(SUBDIVISION_TYPES.includes("prefecture")); // true
true

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kuni 1.4.0.