Get the number of days in a year
$ npm install --save year-days
var yearDays = require('year-days');
yearDays(2014);
//=> 365
yearDays(2016);
//=> 366
Type: number
Default: current year
Type: date
Default: new Date()
MIT © Sindre Sorhus
Get the number of days in a year
$ npm install --save year-days
var yearDays = require('year-days');
yearDays(2014);
//=> 365
yearDays(2016);
//=> 366
Type: number
Default: current year
Type: date
Default: new Date()
MIT © Sindre Sorhus