Reference
Country and region names
import { … } from "@johnmorrisdotca/hata/names";
8.9 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
flagAspect | function | A flag's width over its height, from its picture's viewBox, without loading the picture: 1.5 for Japan's 2:3, 2 for Canada's 1:2. |
flagName | function | The name of a flag's place, in English or Japanese, as Kuni gives it: what a screen reader should say for the flag, or a caption. |
NameLanguage | type | The languages a flag's place is named in. |