1.0.3 • Published 8 years ago
year-of-pig v1.0.3
year-of-pig
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