本文へ移動

Kuni国

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

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

目次

リファレンス · /subdivision-reforms

subdivisionReforms関数

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

The dated note of a country's subdivision rearrangement, or null when none is recorded.

The current ISO codes stay as they are. units says which of those codes the law joins, and the name it writes.

インポート

import { subdivisionReforms } from "@johnmorrisdotca/kuni/subdivision-reforms";

定義

function subdivisionReforms(country: string): SubdivisionReform | null

引数

名前型説明
countrystring

An ISO 3166-1 alpha-2 code, in any case.

戻り値

SubdivisionReform | null

The rearrangement, or null when this package has none for that country.

例

import { subdivisions } from "@johnmorrisdotca/kuni/subdivisions";
import { subdivisionReforms } from "@johnmorrisdotca/kuni/subdivision-reforms";

console.log(subdivisions("VN")?.length); // 63
console.log(subdivisionReforms("VN")?.effective); // "2025-06-12"
console.log(subdivisionReforms("VN")?.operating); // "2025-07-01"
console.log(subdivisionReforms("VN")?.units.length); // 34
console.log(subdivisionReforms("vn")?.law); // "Resolution 202/2025/QH15"
console.log(subdivisionReforms("JP")); // null
63
2025-06-12
2025-07-01
34
Resolution 202/2025/QH15
null

出力(このページを作ったときに実行した結果)

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

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