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 · Ship signal flags (International Code of Signals)

SignalIdtype

The id of one of the Code's flags, written exactly as this package writes it: ics: and a lower-case slug. A letter is ics:a to ics:z, a numeral pennant ics:0 to ics:9, a substitute ics:sub-1 to ics:sub-3 and the answering pennant ics:answer. The Navy's special pennants are usn: and a slug (usn:turn, usn:corpen, usn:substitute-4). No country or region code contains a colon, so none of these can be taken for one.

Import it

import type { SignalId } from "@johnmorrisdotca/hata/signals";

Definition

type SignalId = (typeof SIGNALS)[number]["id"];

Examples

import { type SignalId } from "@johnmorrisdotca/hata/signals";

const diver: SignalId = "ics:a";
console.log(diver);
ics:a

What it prints (run when this page was built)

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