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 · 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

NameTypeDescription
fromstring

What the source rests on, in words: the measure, the Wikidata statement, or the Commons category.

tagTagName

The tag, of the closed list: see TagName.

sourceTagSource

Where it comes from: see TagSource.

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)

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