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

organisationTermsfunction

Where the terms for an organisation's flag were read: the page, the day, and what they say. A flag is here only where those terms let an MIT package carry it; NOTICE.md has the same sentences.

Import it

import { organisationTerms } from "@johnmorrisdotca/hata/organisations";

Definition

function organisationTerms(id: string): { url: string; read: string; says: string; } | null

Parameters

NameTypeDescription
idstring

An organisation's id, in any case, with or without org:.

Returns

{ url: string; read: string; says: string; } | null

{ url, read, says }, or null when the id has no flag here.

Examples

import { organisationTerms } from "@johnmorrisdotca/hata/organisations";

console.log(organisationTerms("org:eu")?.url); // "https://european-union.europa.eu/legal-notice_en"
console.log(organisationTerms("org:xx"));      // null
https://european-union.europa.eu/legal-notice_en
null

What it prints (run when this page was built)

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