Reference
Flags of international organisations
import { … } from "@johnmorrisdotca/hata/organisations";
21.7 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
isOrganisationId | function | True for one of the ids with a flag here, written exactly as this package writes it: "org:eu". |
loadOrganisationFlag | function | Any organisation's flag as an SVG string, loaded when it is asked for: each drawing is a module of its own (@johnmorrisdotca/hata/organisations/<slug>), so a page carries the drawings it asks for and no others. |
ORGANISATION_IDS | constant | Every organisation id with a flag, in the order of the table. |
organisationAspect | function | An organisation's flag's width over its height, from its viewBox: 1.5 for the European Union's 3:2. |
organisationFlag | function | An organisation's flag as an SVG string, the same kind of string a country's module holds: it has a viewBox and no width or height. |
organisationId | function | The id of an organisation's flag, from an id written loosely: either case, with spaces around it. |
OrganisationId | type | The id of an organisation's flag, written exactly as this package writes it: org: and a lower-case slug. |
organisationName | function | An organisation's name, in English or Japanese: what a screen reader should say for the flag, or a caption. |
organisationSource | function | Where a drawing taken from Wikimedia Commons comes from: its file, its page, its licence as Commons states it (public domain or CC0, never share-alike) and its author as Commons gives it. |
organisationTerms | function | Where the terms for an organisation's flag were read: the page, the day, and what they say. |