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 · Medieval banners

medievalIdfunction

The id of a banner from an id written loosely: either case, with spaces around it, with or without med:.

Import it

import { medievalId } from "@johnmorrisdotca/hata/medieval";

Definition

function medievalId(input: string): MedievalId | null

Parameters

NameTypeDescription
inputstring

"red-cross", " MED:Red-Cross ".

Returns

MedievalRecordId | null

The id as this package writes it, or null when the set has no such banner.

Examples

import { medievalId } from "@johnmorrisdotca/hata/medieval";

console.log(medievalId(" GB-White-Ensign ")); // "med:red-cross"
console.log(medievalId("nobody"));            // null
null
null

What it prints (run when this page was built)

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