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