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

GroupingSourcetype

Where a grouping's definition comes from, and the terms its list is under.

Import it

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

Definition

interface GroupingSource {
    name: string;
    url: string;
    licence: string;
}

Members

NameTypeDescription
namestring

The source's name: "European Union, Countries".

urlstring

Where to read it.

licencestring

The terms of the list as it is shipped here.

Examples

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

const value: GroupingSource = grouping("eu")!.source;
console.log(typeof value === "object" ? Object.keys(value).slice(0,6) : value);
[ 'name', 'url', 'licence' ]

What it prints (run when this page was built)

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