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

TagSourcetype

Where a tag comes from, the most trusted first. reviewed: a person looked at the flag and said so. computed: measured from the drawing by a rule with no judgement in it. wikidata: the flag's Wikidata item says it depicts a thing of that kind. unreviewed: an automated guess (a Wikimedia Commons category of the drawing's file, or a rule of thumb on the drawing) that nobody has checked.

Import it

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

Also exported from: @johnmorrisdotca/hata/search

Definition

type TagSource = "reviewed" | "computed" | "wikidata" | "unreviewed";

Examples

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

const sure: TagSource[] = ["reviewed", "computed"];
console.log((manifest("FR")?.tags ?? []).filter((one) => sure.includes(one.source)).map((one) => one.tag)); // ["plain", "stripes-vertical"]
[ 'plain', 'stripes-vertical' ]

What it prints (run when this page was built)

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