window-calander

1.2.6 • Public • Published

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 }
  ]
]
*/

Package Sidebar

Install

npm i window-calander

Weekly Downloads

1

Version

1.2.6

License

MIT

Unpacked Size

6.45 kB

Total Files

4

Last publish

Collaborators

  • yeong-g