0.1.3 • Published 1 year ago

date2calendar v0.1.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

date2calendar

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.

Install

npm install date2calendar

Usage

import date2calendar from "date2calendar";

const calendar = date2calendar({
  date: new Date(),
});

Examples

See this in action here 👇