Skip to content

Check if the year is year of snake in Chinese Zodiac

Notifications You must be signed in to change notification settings

cht8687/year-of-snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

year-of-snake Build Status

Check if is year of Snake

Install

$ npm install --save year-of-snake

Usage

const yearOfSnake = require('year-of-snake');

yearOfSnake(1988);
// true

yearOfSnake(1989);
// false

API

yearOfSnake([year])

year

Type: number
Default: current year

yearOfSnake([date])

date

Type: date
Default: new Date()

License

MIT © haotian Chang

About

Check if the year is year of snake in Chinese Zodiac

Resources

Stars

Watchers

Forks

Packages

No packages published