node-reiwa
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

node-reiwa

npm version

今年は令和何年ですか?

What year of Reiwa is this?

install

% npm install node-reiwa

example

const reiwa = require('node-reiwa')
console.log(reiwa(new Date('2019-05-01')))
// 1

console.log(reiwa(new Date('2019-04-01')))
// null

Readme

Keywords

Package Sidebar

Install

npm i node-reiwa

Weekly Downloads

6

Version

3.0.0

License

MIT

Unpacked Size

2.92 kB

Total Files

5

Last publish

Collaborators

  • abetomo