Kuni 国: countries, their subdivisions and cities
@johnmorrisdotca/kuni
/load
@johnmorrisdotca/kuni
/subdivisions
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。
import { country, countryByName } from "@johnmorrisdotca/kuni";countryByName("ドイツ")?.alpha2 // "DE"; also "Germany", "Deutschland"countryByName("Holland")?.name.ja // "オランダ"country("JP")?.callingCode // "+81"import prefectures from "@johnmorrisdotca/kuni/subdivisions/jp"; // 47, about 3 KBsubdivisionByName("オンタリオ州", { country: "CA" })?.code // "CA-ON"subdivisionTypeLabel("JP-13", "ja") // "都"await loadSubdivisions("CA") // 13, loaded when asked
Names and codes from Unicode CLDR; facts, cities and readings from Wikidata (CC0), Natural Earth (public domain) and Japan Post. Urban areas from the U.S. Census Bureau, the National Bureau of Statistics of China (2020 census) and the Census of India 2011, and: Adapted from Statistics Canada, Table 98-10-0005-01, Population and dwelling counts: Canada, provinces and territories, census metropolitan areas and census agglomerations, 2021 Census, reference date 2021-05-11. This does not constitute an endorsement by Statistics Canada of this product. Adapted from Statistics Canada, Table 17-10-0148-01, Population estimates, July 1, by census metropolitan area and census agglomeration, 2021 boundary, and Table 98-10-0003-01, Population and dwelling counts: Census metropolitan areas, census agglomerations and census subdivisions (municipalities), 2021 Census. This does not constitute an endorsement by Statistics Canada of this product. OECD (2026), Functional urban areas: population by age and sex, OECD Data Explorer, https://sdmx.oecd.org/public/rest/data/OECD.CFE.EDS,DSD_FUA_DEMO@DF_AGE_SEX (accessed on 2026-11-11). Data and credits