Nighttime Peanut Migrations
    Wondering what’s next for npm?Check out our public roadmap! »

    year-weeks

    1.0.7 • Public • Published

    npm mit license build status coverage status deps status

    Get the number of weeks in year - leap or not.

    Install

    npm i --save year-weeks
    npm test
    

    API

    For more use-cases see the tests

    yearWeeks

    Get the number of weeks in year - leap or not.

    • [val] {Date|Number} every valid Date format string, Date object or year as number
    • return {Number}

    Example:

    var yearWeeks = require('year-weeks');
     
    yearWeeks(2014);
    //=> 52
     
    yearWeeks(2016);
    //=> 52
     
    yearWeeks(new Date(2016, 0));
    //=> 52
     
    yearWeeks('2012-12-17T03:24:00');
    //=> 52

    Author

    Charlike Mike Reagent

    License MIT license

    Copyright (c) 2014-2015 Charlike Mike Reagent, contributors.
    Released under the MIT license.


    Powered and automated by kdf, March 02, 2015

    Install

    npm i year-weeks

    DownloadsWeekly Downloads

    16

    Version

    1.0.7

    License

    MIT

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar