本文へ移動

Kuni国

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

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

目次

リファレンス

/zones

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

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

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

エクスポート

名前種類概要
subdivisionTimeZone関数The IANA time zone of a first-level subdivision, by its ISO 3166-2 code: what a map of a country's regions shows.
timeZoneAt関数The IANA time zone at a point in a country, and whether it is known or estimated.
ZoneAnswer型A zone, and whether it was worked out rather than read: estimated is true where kuni had to choose.

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

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