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 · Flags a page registers itself

customCreditLinefunction

Whose flags are on a page, as one line: each set that is on and holds a flag, with its credit and its licence beside it (and "non-commercial" or "share-alike" where the set says so), in English or Japanese.

Import it

import { customCreditLine } from "@johnmorrisdotca/hata/custom";

Definition

function customCreditLine(language?: "en" | "ja"): string

Parameters

NameTypeDescription
language (optional)"en" | "ja"

"en" (the default) or "ja".

Returns

string

The line, or an empty text when no custom flag is on.

Examples

import { customCreditLine } from "@johnmorrisdotca/hata/custom";

console.log(customCreditLine("ja") === ""); // true when nothing is registered
true

What it prints (run when this page was built)

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