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 · Samurai battle banners

SamuraiIdtype

The id of a banner, written exactly as this package writes it: samurai: and a lower-case slug. No country or region code contains a colon, so none of these can be taken for one.

Import it

import type { SamuraiId } from "@johnmorrisdotca/hata/samurai";

Definition

type SamuraiId = (typeof SAMURAI)[number]["id"];

Examples

import { type SamuraiId } from "@johnmorrisdotca/hata/samurai";

const nobori: SamuraiId = "samurai:sanada-rokumonsen";
console.log(nobori);
samurai:sanada-rokumonsen

What it prints (run when this page was built)

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