Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cht8687/year-of-ox
Check if the year is year of ox in Chinese Zodiac
https://github.com/cht8687/year-of-ox
Last synced: 10 days ago
JSON representation
Check if the year is year of ox in Chinese Zodiac
- Host: GitHub
- URL: https://github.com/cht8687/year-of-ox
- Owner: cht8687
- Created: 2016-09-16T23:16:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-17T01:43:09.000Z (about 8 years ago)
- Last Synced: 2024-10-12T00:37:54.833Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 195 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# year-of-ox [![Build Status](https://travis-ci.org/cht8687/year-of-ox.svg?branch=master)](https://travis-ci.org/cht8687/year-of-rat)
> Check if is year of Ox
## Install
```
$ npm install --save year-of-ox
```## Usage
```js
const yearOfOx = require('year-of-ox');
yearOfOx(1985);
// trueyearOfOx(1986);
// false```
## API### yearOfOx([year])
#### year
Type: `number`
Default: current year### yearOfOx([date])
#### date
Type: `date`
Default: `new Date()`## License
MIT © [haotian Chang](https://github.com/cht8687)