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 of international organisations

OrganisationIdtype

The id of an organisation's flag, written exactly as this package writes it: org: and a lower-case slug. Country and region codes never contain a colon, so no organisation id can be taken for one.

Import it

import type { OrganisationId } from "@johnmorrisdotca/hata/organisations";

Definition

type OrganisationId = (typeof ORGANISATIONS)[number]["id"];

Examples

import { type OrganisationId } from "@johnmorrisdotca/hata/organisations";

const european: OrganisationId = "org:eu";
console.log(european);
org:eu

What it prints (run when this page was built)

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