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