Skip to content

cht8687/year-of-pig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

year-of-pig Build Status

Check if is year of Pig

Install

$ npm install --save year-of-pig

Usage

const yearOfPig = require('year-of-pig');

yearOfPig(1995);
// true

yearOfPig(1996);
// false

API

yearOfPig([year])

year

Type: number
Default: current year

yearOfPig([date])

date

Type: date
Default: new Date()

License

MIT © haotian Chang

About

Check if the year is year of pig in Chinese Zodiac

Resources

Stars

Watchers

Forks

Packages

No packages published