Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abetomo/node-reiwa

今年は令和何年ですか? What year of Reiwa is this?
https://github.com/abetomo/node-reiwa

nodejs reiwa

Last synced: about 2 months ago
JSON representation

今年は令和何年ですか? What year of Reiwa is this?

Awesome Lists containing this project

README

        

# node-reiwa

[![npm version](https://badge.fury.io/js/node-reiwa.svg)](https://badge.fury.io/js/node-reiwa)

今年は令和何年ですか?

What year of Reiwa is this?

## install

```
% npm install node-reiwa
```

## example

```typescript
import reiwa from 'node-reiwa'
console.log(reiwa(new Date('2019-05-01')))
// 1

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