year-of-pig

1.0.3 • Public • Published

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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i year-of-pig

    Weekly Downloads

    0

    Version

    1.0.3

    License

    MIT

    Last publish

    Collaborators

    • cht8687