UNPKG

date-japanese

Version:

Convert Japanese calendar dates to Western calendar dates and vice versa. Full support for Kanji numerals in Wareki dates.

9 lines (8 loc) 357 B
/** * Converts kanji numbers within a date string to their numeral equivalents. * Replaces "元年" with "1年". * @param {string} kanjiDate The date string containing kanji numbers. * @return {string} The date string with kanji numbers replaced with numerals. */ declare const _default: (kanjiDate: string) => string; export default _default;