Reference · Flags of international organisations
organisationSourcefunction
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. The European Union's flag is drawn for this package, not a file, so it has none.
Import it
import { organisationSource } from "@johnmorrisdotca/hata/organisations";
Definition
function organisationSource(id: string): { file: string; page: string; licence: string; author: string; } | null
Parameters
| Name | Type | Description |
|---|---|---|
id | string | An organisation's id, in any case, with or without |
Returns
{ file: string; page: string; licence: string; author: string; } | null
{ file, page, licence, author }, or null for the European Union's drawing and for an id with no flag here.
Examples
import { organisationSource } from "@johnmorrisdotca/hata/organisations";
console.log(organisationSource("org:caricom")?.licence); // "Public domain"
console.log(organisationSource("org:eu")); // nullPublic domain
nullWhat it prints (run when this page was built)