Reference · Flag source and framing metadata
FlagTagRecordtype
A flag's tag as the manifest has it: the tag, its source, and what the source rests on.
Import it
import type { FlagTagRecord } from "@johnmorrisdotca/hata/manifest";
Definition
interface FlagTagRecord extends FlagTag {
from: string;
}
Members
| Name | Type | Description |
|---|---|---|
from | string | What the source rests on, in words: the measure, the Wikidata statement, or the Commons category. |
tag | TagName | The tag, of the closed list: see |
source | TagSource | Where it comes from: see |
Examples
import { manifest, type FlagTagRecord } from "@johnmorrisdotca/hata/manifest";
const germany: FlagTagRecord[] = manifest("DE")?.tags ?? [];
console.log(germany[1]); // { tag: "stripes-horizontal", source: "computed", from: "the whole flag is three bands across" }{
tag: 'stripes-horizontal',
source: 'computed',
from: 'the whole flag is three bands across'
}What it prints (run when this page was built)