8000 GitHub - tohashi/wareki at v0.2.0
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tohashi/wareki

Repository files navigation

wareki

CircleCI Coverage Status

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')
// -> 平成31
wareki('2019-05-01', { newEraEnabled: true })
// -> 新元号元
wareki('2019-05-01', { unit: true, newEraEnabled: true, newEraName: '元気モリモリご飯パワー' })
// -> 元気モリモリご飯パワー元年

About

Utility function for Japanese calender.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
0