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-horse

Check if the year is year of horse in Chinese Zodiac
https://github.com/cht8687/year-of-horse

Last synced: 10 days ago
JSON representation

Check if the year is year of horse in Chinese Zodiac

Awesome Lists containing this project

README

        

# year-of-horse [![Build Status](https://travis-ci.org/cht8687/year-of-horse.svg?branch=master)](https://travis-ci.org/cht8687/year-of-horse)

> Check if is year of Horse

## Install

```
$ npm install --save year-of-horse
```

## Usage

```js

const yearOfHorse = require('year-of-horse');

yearOfHorse(1990);
// true

yearOfHorse(1991);
// false

```
## API

### yearOfHorse([year])

#### year

Type: `number`
Default: current year

### yearOfHorse([date])

#### date

Type: `date`
Default: `new Date()`

## License

MIT © [haotian Chang](https://github.com/cht8687)