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

FlagTagtype

One thing that is on a flag, and where the claim comes from.

Import it

import type { FlagTag } from "@johnmorrisdotca/hata/manifest";

Also exported from: @johnmorrisdotca/hata/search

Definition

interface FlagTag {
    tag: TagName;
    source: TagSource;
}

Members

NameTypeDescription
tagTagName

The tag, of the closed list: see TagName.

sourceTagSource

Where it comes from: see TagSource.

Examples

import { tagsOf, type FlagTag } from "@johnmorrisdotca/hata/search";

const germany: readonly FlagTag[] = tagsOf("DE");
console.log(germany); // [{ tag: "plain", source: "computed" }, { tag: "stripes-horizontal", source: "computed" }]
[
  { tag: 'plain', source: 'computed' },
  { tag: 'stripes-horizontal', source: 'computed' }
]

What it prints (run when this page was built)

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