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 · Flags by their colours

FLAG_TAGSconstant

The names a flag's tag can have, in the order tagsOf gives them: a closed list, so a page can draw a chip for each. Frozen. docs/tags.md says when each applies.

Import it

import { FLAG_TAGS } from "@johnmorrisdotca/hata/search";

Definition

const FLAG_TAGS: readonly TagName[] = Object.freeze([...TAG_NAMES])

Examples

import { FLAG_TAGS } from "@johnmorrisdotca/hata/search";

console.log(FLAG_TAGS.includes("stars"), FLAG_TAGS.length); // true 22
true 22

What it prints (run when this page was built)

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