Reference · Flag source and framing metadata
manifestfunction
Where one flag's drawing comes from, its licence and author, and why it was chosen.
Import it
import { manifest } from "@johnmorrisdotca/hata/manifest";
Definition
function manifest(code: string): FlagRecord | null
Parameters
| Name | Type | Description |
|---|---|---|
code | string | A flag's code in any case: "JP", "jp-13", "CA_ON". |
Returns
FlagRecord | null
The flag's record, or null when the code has no flag here (see leftOut for why).
Examples
import { manifest } from "@johnmorrisdotca/hata/manifest";
console.log(manifest("JP-13")?.licence.name); // "Public domain"
console.log(manifest("YE")?.source); // "country-flag-icons"
console.log(manifest("XX")); // nullPublic domain
country-flag-icons
nullWhat it prints (run when this page was built)