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

Country facts

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

8.5 kB minified and gzipped, with everything it imports (measured with esbuild)

Exports

NameKindWhat it is
allFactsfunctionThe facts about every country, in alpha-2 order: one object for each of the 250 codes, the list and its objects frozen and shared.
CountryFactstypeThe facts about one country, from the /facts entry: plain numbers and codes, null where a source has none.
distanceKmfunctionThe great-circle distance between two points, in kilometres, on a sphere of the earth's mean radius (6,371 km).
DrivingSidetypeThe side of the road a country drives on.
factsfunctionThe facts about one country, by its alpha-2 code in either case.
FACTS_READconstantThe day the Wikidata snapshot was read: every figure in /facts is as Wikidata gave it on this day.
HourCycletypeThe clock in everyday use, named as an hour cycle is in JavaScript: "h12" is 1 to 12 with AM and PM, "h23" is 0 to 23.
LatLontypeA point on the earth, in degrees: north and east are positive.
MeasurementSystemtypeThe system of measurement in everyday use, as CLDR writes it: the United States' and Britain's are their own.
PaperSizetypeThe paper size in everyday use, as CLDR writes it.
WeekStarttypeThe first day of the week on a calendar there, as CLDR writes it.

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