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 · Regions and international bodies

GroupingsOptionstype

What groupings() may be narrowed to.

Import it

import type { GroupingsOptions } from "@johnmorrisdotca/kuni/groupings";

Definition

interface GroupingsOptions {
    kind?: GroupingKind;
    country?: string;
}

Members

NameTypeDescription
kind (optional)"continent" | "m49" | "membership" | "informal" | "subdivision" | undefined

Only groupings of this kind.

country (optional)string | undefined

Only groupings of the subdivisions inside this country (alpha-2, either case).

Examples

import type { GroupingsOptions } from "@johnmorrisdotca/kuni/groupings";
import { country } from "@johnmorrisdotca/kuni";

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

What it prints (run when this page was built)

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