本文へ移動

Kuni国

国、コード、名前、行政区画を調べ、必要なときに国のデータを読み込み、標準の国のカードを表示できます。

「国(くに)」は、国を表す日本語です。 名前について(英語)

目次

リファレンス

/capitals

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

最小化と gzip 圧縮をしたサイズは 1.0 kB(読み込むものをすべて含み、esbuild で計測)

リファレンスの説明と例は英語です。見出しと目次は日本語です。

エクスポート

名前種類概要
CapitalRole型What a capital city is the capital for.
CAPITALS_READ定数The day the capitals' pages were read: every role in capitalsOf is as the country's own government page said on this day.
capitalsOf関数The capitals of a country that has more than one capital city, or a capital that capital does not name alone, each with its role: South Africa's Pretoria (administrative), Cape Town (legislative) and Bloemfontein (judicial).
CountryCapital型One capital city of a country that has more than one, or whose capital is not the one capital names alone, from capitalsOf in the /capitals entry.

ソースを見るGitHub で編集@johnmorrisdotca/kuni 1.19.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。