Reference
Country trivia
import { … } from "@johnmorrisdotca/kuni/trivia";
7.5 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
allTrivia | function | The trivia about every country, in alpha-2 order: one object for each of the 250 codes, the list and its objects frozen and shared. |
CountryTrivia | type | The trivia about one country, from the /trivia entry: null where the source has none. |
trivia | function | The trivia about one country, by its alpha-2 code in either case. |
TRIVIA_READ | constant | The day the Wikidata snapshot of the trivia was read. |