リファレンス
国の情報
import { … } from "@johnmorrisdotca/kuni/facts";
最小化と gzip 圧縮をしたサイズは 8.5 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
allFacts | 関数 | The facts about every country, in alpha-2 order: one object for each of the 250 codes, the list and its objects frozen and shared. |
CountryFacts | 型 | The facts about one country, from the /facts entry: plain numbers and codes, null where a source has none. |
distanceKm | 関数 | The great-circle distance between two points, in kilometres, on a sphere of the earth's mean radius (6,371 km). |
DrivingSide | 型 | The side of the road a country drives on. |
facts | 関数 | The facts about one country, by its alpha-2 code in either case. |
FACTS_READ | 定数 | The day the Wikidata snapshot was read: every figure in /facts is as Wikidata gave it on this day. |
HourCycle | 型 | The 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. |
LatLon | 型 | A point on the earth, in degrees: north and east are positive. |
MeasurementSystem | 型 | The system of measurement in everyday use, as CLDR writes it: the United States' and Britain's are their own. |
PaperSize | 型 | The paper size in everyday use, as CLDR writes it. |
WeekStart | 型 | The first day of the week on a calendar there, as CLDR writes it. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。