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)

signalInfofunction

Everything the package knows of a flag: its group (letter, numeral, substitute or answer), both names, its meaning, its status (official: the design is the Code's own), a note on how it was drawn, the page it was read from and its aspect ratio. A copy.

Import it

import { signalInfo } from "@johnmorrisdotca/hata/signals";

Definition

function signalInfo(id: string): DrawnInfo | null

Parameters

NameTypeDescription
idstring

A flag's id, in any case, with or without ics:.

Returns

DrawnInfo | null

The record, or null when the Code has no such flag.

Examples

import { signalInfo } from "@johnmorrisdotca/hata/signals";

console.log(signalInfo("ics:a")?.group);       // "letter"
console.log(signalInfo("ics:a")?.source.kind); // "official"
letter
official

What it prints (run when this page was built)

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