Reference
Military flags (naval ensigns, jacks and war flags)
import { … } from "@johnmorrisdotca/hata/military";
424.7 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
isMilitaryId | function | True for an id of this set, written exactly as this package writes it. |
MILITARY_IDS | constant | Every military flag id of the set, in the order of the table, without the restricted ones (MILITARY_RESTRICTED_IDS). |
MILITARY_RESTRICTED_IDS | constant | The ids of the flags shipped for history and education and never given by default: the Confederate battle flag of the Army of Northern Virginia and the Confederate States Navy's jack. |
militaryAbout | function | What the flag is, in a sentence, in English or Japanese: whose it is, what it shows and when it was fixed. |
militaryAspect | function | A flag's width over its height, from its viewBox: 1.5 for the Self-Defense Force ensign's 3 to 2. |
militaryFlag | function | A military flag as an SVG string: it has a viewBox and no width or height. |
militaryId | function | The id of a flag from an id written loosely: either case, with spaces around it, with or without mil:. |
MilitaryId | type | The id of a military flag, written exactly as this package writes it: mil:, the country's two letters and a lower-case slug ("mil:gb-white-ensign"). |
militaryIn | function | The ids of one kind of flag: ensign (the flag a warship flies at the stern) or jack (the flag at the bow). |
militaryInfo | function | Everything the package knows of a military flag, a copy: its group (ensign or jack), both names, what it is, its dates (from, and until where it ended), its status (documented where a source gives the construction, reconstruction where the sizes are this package's), the note that says which, and the page it was read from. |
MilitaryInfo | type | What the package knows of one military flag: its id, group, both names, what it is, its status, the note on what is the source's and what is this package's, its dates, its source and its aspect ratio. |
militaryName | function | A flag's name, in English or Japanese: the country and what the flag is. |
MilitaryRestriction | type | Why a flag is withheld by default, and who it is for, in both languages: reason, reasonJa, allowedFor and allowedForJa. |