Skip to the content

Hata旗

Load a native country or region flag, choose supported framing and keep each drawing’s source, author and licence.

Hata (旗) is Japanese for a flag. About the name

Contents

Reference

Country and region names

import { … } from "@johnmorrisdotca/hata/names";

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

Exports

NameKindWhat it is
flagAspectfunctionA 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.
flagNamefunctionThe 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.
NameLanguagetypeThe languages a flag's place is named in.

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hata 1.6.0.