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

    Install

    npm i year-of-pig

    DownloadsWeekly Downloads

    1

    Version

    1.0.3

    License

    MIT

    Last publish

    Collaborators

    • cht8687