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 · Military flags (naval ensigns, jacks and war flags)

MilitaryIdtype

The id of a military flag, written exactly as this package writes it: mil:, the country's two letters and a lower-case slug ("mil:gb-white-ensign"). No country or region code contains a colon, so none of these can be taken for one.

Import it

import type { MilitaryId } from "@johnmorrisdotca/hata/military";

Definition

type MilitaryId = MilitaryRecordId;

Examples

import { type MilitaryId } from "@johnmorrisdotca/hata/military";

const ensign: MilitaryId = "mil:gb-white-ensign";
console.log(ensign);
mil:gb-white-ensign

What it prints (run when this page was built)

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