A simple function that takes date as a parameter and turns it into a calendar in the form of a two-dimensional array (of weeks and days) which you can use to build fully customizable calendar components.
This package is also a part of an article on DEV Community - you can check it out here.
npm install date2calendar
import date2calendar from "date2calendar";
const calendar = date2calendar({
date: new Date(),
});
See this in action here 👇