Get the number of days in a month
$ npm install month-days
const monthDays = require('month-days');
monthDays({month: 1, year: 2016});
//=> 29
Type: object
Type: number
Default: Current UTC month
Note that the month is zero-index to be consistent with the native date methods.
Type: number
Default: Current UTC year
MIT © Sindre Sorhus