date2calendar
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

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 👇

/date2calendar/

    Package Sidebar

    Install

    npm i date2calendar

    Weekly Downloads

    1

    Version

    0.1.3

    License

    ISC

    Unpacked Size

    3.98 kB

    Total Files

    6

    Last publish

    Collaborators

    • rago4