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

CountriesOptionstype

What countries() may be asked.

Import it

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

Definition

interface CountriesOptions {
    order?: CountryOrder;
}

Members

NameTypeDescription
order (optional)CountryOrder | undefined

"code" (the default) is alpha-2 order; "en" and "ja" are by name, as countries says.

Examples

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

const value: CountriesOptions = {order:"ja"};
console.log(typeof value === "object" ? Object.keys(value).slice(0,6) : value);
[ 'order' ]

What it prints (run when this page was built)

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