8000 GitHub - tohashi/wareki: Utility function for Japanese calender.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ wareki Public

Utility function for Japanese calender.

License

Notifications You must be signed in to change notification settings

tohashi/wareki

Repository files navigation

wareki

CircleCI

Installation

$ npm install wareki

Usage

import wareki from 'wareki'

wareki('1989-01-07')
// -> 昭和64
wareki('1989-01-08')
// -> 平成元
wareki('2018-08-01', { unit: true })
// -> 平成30年
wareki('2019-05-01')
// -> 令和元
0