Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cht8687/year-of-monkey
Check if the year is year of monkey in Chinese Zodiac
https://github.com/cht8687/year-of-monkey
Last synced: 10 days ago
JSON representation
Check if the year is year of monkey in Chinese Zodiac
- Host: GitHub
- URL: https://github.com/cht8687/year-of-monkey
- Owner: cht8687
- Created: 2016-09-17T02:55:04.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-17T23:28:28.000Z (about 8 years ago)
- Last Synced: 2024-11-03T05:03:22.895Z (14 days ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# year-of-monkey [![Build Status](https://travis-ci.org/cht8687/year-of-monkey.svg?branch=master)](https://travis-ci.org/cht8687/year-of-monkey)
> Check if is year of Monkey
## Install
```
$ npm install --save year-of-monkey
```## Usage
```js
const yearOfMonkey = require('year-of-monkey');
yearOfMonkey(1991);
// trueyearOfMonkey(1992);
// false```
## API### yearOfMonkey([year])
#### year
Type: `number`
Default: current year### yearOfMonkey([date])
#### date
Type: `date`
Default: `new Date()`## License
MIT © [haotian Chang](https://github.com/cht8687)