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 · BL--LOCAL flag SVG

defaultconstant

Saint-Barthélemy's local flag: one of the flags of St. Barthélemy (サン・バルテルミー), BL, in real use, as an SVG string: viewBox 937.5 by 625 (3:2), 35.7 KB. From Wikimedia Commons, "Flag of Saint Barthélemy (local).svg" (CC BY 2.5). flag("BL", { variant: "local" }) loads it, and variantsOf("BL") says its status, dates and why it is offered.

Import it

import value from "@johnmorrisdotca/hata/flags/bl--local";

Definition

const svg: string

Examples

Example 1

import flag from "@johnmorrisdotca/hata/flags/bl--local";

const host=document.createElement("div");
host.innerHTML = flag;
console.log(host.querySelector("svg")?.getAttribute("viewBox"));

Example 2

import { svg } from "@johnmorrisdotca/hata/flags/bl--local";
console.log(svg.startsWith("<svg"),svg.length);
true 36513

What it prints (run when this page was built)

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