Skip to content

Check if the year is year of tiger in Chinese Zodiac

Notifications You must be signed in to change notification settings

cht8687/year-of-tiger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

year-of-tiger Build Status

Check if is year of Tiger

Install

$ npm install --save year-of-tiger

Usage

const yearOfTiger = require('year-of-tiger');

yearOfTiger(1986);
// true

yearOfTiger(1987);
// false

API

yearOfTiger([year])

year

Type: number
Default: current year

yearOfTiger([date])

date

Type: date
Default: new Date()

License

MIT © haotian Chang

About

Check if the year is year of tiger in Chinese Zodiac

Resources

Stars

Watchers

Forks

Packages

No packages published