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 · Country code validation

CountryCodetype

One of the 250 country codes, as a type: "JP" | "US" | ...

Import it

import type { CountryCode } from "@johnmorrisdotca/kuni/codes";

Also exported from: @johnmorrisdotca/kuni

Definition

type CountryCode = (typeof COUNTRY_CODES)[number];

Examples

import type { CountryCode } from "@johnmorrisdotca/kuni/codes";
const code: CountryCode = "JP";
console.log(code);
JP

What it prints (run when this page was built)

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