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 · Countries and lookup tools

CountryOrdertype

The order countries() lists them in: "code" (alpha-2), "en" (by English name) or "ja" (by Japanese name, in kana).

Import it

import type { CountryOrder } from "@johnmorrisdotca/kuni";

Definition

type CountryOrder = "code" | "en" | "ja";

Examples

import type { CountryOrder } from "@johnmorrisdotca/kuni";

const value: CountryOrder = "code";
console.log(typeof value === "object" ? Object.keys(value).slice(0,6) : value);
code

What it prints (run when this page was built)

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