year-of-dragon
Version:
Check if is year of Dragon
44 lines (25 loc) • 586 B
Markdown
year-of-dragon [](https://travis-ci.org/cht8687/year-of-dragon)
Check if is year of Dragon
# Install
```
npm install --save year-of-dragon
```
# Usage
```js
const yearOfDragon = require('year-of-dragon');
yearOfDragon(1988);
// true
yearOfDragon(1989);
// false
```
# API
## yearOfDragon([year])
### year
Type: `number`
Default: current year
## yearOfDragon([date])
### date
Type: `date`
Default: `new Date()`
# License
MIT © [haotian Chang](https://github.com/cht8687)