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