Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

year-of-ox

cht868710MIT1.0.3

Check if is year of Ox

year, year-of, chinese, zodiac, rat, ox, tiger, rabbit, dragon, snake, horse, sheep, monkey, rooster, dog, pig

readme

year-of-ox Build Status

Check if is year of Ox

Install

$ npm install --save year-of-ox

Usage


const yearOfOx = require('year-of-ox');

yearOfOx(1985);
// true

yearOfOx(1986);
// false

API

yearOfOx([year])

year

Type: number
Default: current year

yearOfOx([date])

date

Type: date
Default: new Date()

License

MIT © haotian Chang