Reference · Flag source and framing metadata
TagNametype
The names a flag's tag can have: a closed list of the things a person sees on a flag. plain is flat fields of
colour with nothing drawn on them; emblem is any seal, badge, shield or device, a coat of arms included; a
Nordic cross is a cross too. docs/tags.md says when each applies.
Import it
import type { TagName } from "@johnmorrisdotca/hata/manifest";
Also exported from: @johnmorrisdotca/hata/search
Definition
type TagName = "plain" | "stripes-horizontal" | "stripes-vertical" | "stripes-diagonal" | "cross" | "nordic-cross" | "saltire" | "canton" | "stars" | "crescent" | "sun" | "circle" | "triangle" | "emblem" | "coat-of-arms" | "animal" | "plant" | "building" | "weapon" | "crown" | "map" | "text";
Examples
import { manifest, type TagName } from "@johnmorrisdotca/hata/manifest";
const names: TagName[] = (manifest("DE")?.tags ?? []).map((one) => one.tag);
console.log(names); // ["plain", "stripes-horizontal"][ 'plain', 'stripes-horizontal' ]What it prints (run when this page was built)