window-calander

import WindowCalander from 'window-calander'; const WindowCalander = require("window-calander");

Usage no npm install needed!

<script type="module">
  import windowCalander from 'https://cdn.skypack.dev/window-calander';
</script>

README

WindowCalander

import WindowCalander from 'window-calander';
const WindowCalander = require("window-calander");


// WindowCalander(year, month)

console.log(WindowCalander(2020,11))
/*
[
  [
    { year: 2020, month: 11, date: 1, day: 0, isThisMonth: true },
    { year: 2020, month: 11, date: 2, day: 1, isThisMonth: true },
    { year: 2020, month: 11, date: 3, day: 2, isThisMonth: true },
    { year: 2020, month: 11, date: 4, day: 3, isThisMonth: true },
    { year: 2020, month: 11, date: 5, day: 4, isThisMonth: true },
    { year: 2020, month: 11, date: 6, day: 5, isThisMonth: true },
    { year: 2020, month: 11, date: 7, day: 6, isThisMonth: true }
  ],
  [
    { year: 2020, month: 11, date: 8, day: 0, isThisMonth: true },
    { year: 2020, month: 11, date: 9, day: 1, isThisMonth: true },
    { year: 2020, month: 11, date: 10, day: 2, isThisMonth: true },
    { year: 2020, month: 11, date: 11, day: 3, isThisMonth: true },
    { year: 2020, month: 11, date: 12, day: 4, isThisMonth: true },
    { year: 2020, month: 11, date: 13, day: 5, isThisMonth: true },
    { year: 2020, month: 11, date: 14, day: 6, isThisMonth: true }
  ],
  [
    { year: 2020, month: 11, date: 15, day: 0, isThisMonth: true },
    { year: 2020, month: 11, date: 16, day: 1, isThisMonth: true },
    { year: 2020, month: 11, date: 17, day: 2, isThisMonth: true },
    { year: 2020, month: 11, date: 18, day: 3, isThisMonth: true },
    { year: 2020, month: 11, date: 19, day: 4, isThisMonth: true },
    { year: 2020, month: 11, date: 20, day: 5, isThisMonth: true },
    { year: 2020, month: 11, date: 21, day: 6, isThisMonth: true }
  ],
  [
    { year: 2020, month: 11, date: 22, day: 0, isThisMonth: true },
    { year: 2020, month: 11, date: 23, day: 1, isThisMonth: true },
    { year: 2020, month: 11, date: 24, day: 2, isThisMonth: true },
    { year: 2020, month: 11, date: 25, day: 3, isThisMonth: true },
    { year: 2020, month: 11, date: 26, day: 4, isThisMonth: true },
    { year: 2020, month: 11, date: 27, day: 5, isThisMonth: true },
    { year: 2020, month: 11, date: 28, day: 6, isThisMonth: true }
  ],
  [
    { year: 2020, month: 11, date: 29, day: 0, isThisMonth: true },
    { year: 2020, month: 11, date: 30, day: 1, isThisMonth: true },
    { year: 2020, month: 12, date: 1, day: 2, isThisMonth: false },
    { year: 2020, month: 12, date: 2, day: 3, isThisMonth: false },
    { year: 2020, month: 12, date: 3, day: 4, isThisMonth: false },
    { year: 2020, month: 12, date: 4, day: 5, isThisMonth: false },
    { year: 2020, month: 12, date: 5, day: 6, isThisMonth: false }
  ],
  [
    { year: 2020, month: 12, date: 6, day: 0, isThisMonth: false },
    { year: 2020, month: 12, date: 7, day: 1, isThisMonth: false },
    { year: 2020, month: 12, date: 8, day: 2, isThisMonth: false },
    { year: 2020, month: 12, date: 9, day: 3, isThisMonth: false },
    { year: 2020, month: 12, date: 10, day: 4, isThisMonth: false },
    { year: 2020, month: 12, date: 11, day: 5, isThisMonth: false },
    { year: 2020, month: 12, date: 12, day: 6, isThisMonth: false }
  ]
]
*/