Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cht8687/year-of-tiger
Check if the year is year of tiger in Chinese Zodiac
https://github.com/cht8687/year-of-tiger
Last synced: 10 days ago
JSON representation
Check if the year is year of tiger in Chinese Zodiac
- Host: GitHub
- URL: https://github.com/cht8687/year-of-tiger
- Owner: cht8687
- Created: 2016-09-16T23:26:53.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-17T23:03:13.000Z (about 8 years ago)
- Last Synced: 2024-10-12T00:37:41.682Z (about 1 month ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# year-of-tiger [![Build Status](https://travis-ci.org/cht8687/year-of-tiger.svg?branch=master)](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);
// trueyearOfTiger(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)