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

HistoricalEratype

The years a former country existed and the other codes that find its flag: the ISO 3166-1 alpha-2 and alpha-3 it had and the IOC's three letters. Only a former country's record has one; a present-day place's has none.

Import it

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

Definition

interface HistoricalEra {
    from: string;
    until: string;
    aliases: string[];
}

Members

NameTypeDescription
fromstring

The first year of the state (not of the flag in the record: a variant has its own dates), as a year.

untilstring

The last year of the state, as a year.

aliasesstring[]

The other codes that find it: "SU", "SUN" and "URS" for the Soviet Union. None is a code of a flag itself, and none is shared with another place.

Examples

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

const era: HistoricalEra | undefined = manifest("SUHH")?.historical;
console.log(era?.from);    // "1922"
console.log(era?.until);   // "1991"
console.log(era?.aliases); // ["SU", "SUN", "URS"]
1922
1991
[ 'SU', 'SUN', 'URS' ]

What it prints (run when this page was built)

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