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

import { … } from "@johnmorrisdotca/kuni/codes";

0.6 kB minified and gzipped, with everything it imports (measured with esbuild)

Exports

NameKindWhat it is
COUNTRY_CODESconstantThe 250 country codes: the 249 ISO 3166-1 alpha-2 codes and XK for Kosovo, in alphabetical order.
CountryCodetypeOne of the 250 country codes, as a type: "JP" | "US" | ...
isCountryCodefunctionWhether a value is one of the 250 codes exactly as ISO writes it: two capital letters ("JP", and "XK" for Kosovo).

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