Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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);
// true

yearOfMonkey(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)