Skip to the content

Hikidashi引き出し

Era dates (和暦) and kanji numerals both ways, the dictionary forms of a conjugated word, a reading shared out over its kanji, words pulled from pasted text, and how hard a sentence is to read.

Hikidashi (引き出し) is a drawer: each tool is pulled out when it is wanted. About the name

Contents

Reference · Era years

formatEraYearRomajifunction

The era year as it is written in Latin letters: Heisei 3.

Import it

import { formatEraYearRomaji } from "@johnmorrisdotca/hikidashi/wareki";

Also exported from: @johnmorrisdotca/hikidashi

Definition

function formatEraYearRomaji(found: EraYear): string

Parameters

NameTypeDescription
foundEraYear

An era year, from parseEraYear, eraYearOf, eraYearsOf or eraOnDate.

Returns

string

The era's Latin name and the year, such as "Reiwa 6".

Examples

import { formatEraYearRomaji, parseEraYear } from "@johnmorrisdotca/hikidashi/wareki";

console.log(formatEraYearRomaji(parseEraYear("平成3年")!));
Heisei 3

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hikidashi 1.1.0.