Another calendar typescript library
npm install almanaque --save-dev
Import Almanaque class from your node modules in order to get new instance with new:
import Almanaque from 'almanaque';
const almanaque = new Almanaque();
We could get our instance passing any reference date, by default this reference date should be today date:
const today = new Date();
const almanaque = new Almanaque(today);
const monthDays = almanaque.currentDays();
Review and check a react example to try it.