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
| Name | Type | Description |
|---|---|---|
id | string | An organisation's id, in any case, with or without |
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")); // nullhttps://european-union.europa.eu/legal-notice_en
nullWhat it prints (run when this page was built)