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

CountryNameOptionstype

What countryName() may be asked.

Import it

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

Definition

interface CountryNameOptions {
    short?: boolean;
}

Members

NameTypeDescription
short (optional)boolean | undefined

The short form where CLDR has one ("UK", アメリカ), the full name otherwise.

Examples

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

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

What it prints (run when this page was built)

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