Get unlimited public & private packages + team-based management with npm Teams.Learn more »

year-of-rabbit

1.0.7 • Public • Published

year-of-rabbit Build Status

Check if is year of Rabbit

Install

$ npm install --save year-of-rabbit

Usage

 
const yearOfRabbit = require('year-of-rabbit');
 
yearOfRabbit(1987);
// true
 
yearOfRabbit(1988);
// false
 
 

API

yearOfRabbit([year])

year

Type: number
Default: current year

yearOfRabbit([date])

date

Type: date
Default: new Date()

License

MIT © haotian Chang

Install

npm i year-of-rabbit

DownloadsWeekly Downloads

5

Version

1.0.7

License

MIT

Last publish

Collaborators

  • avatar