
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
calendar-dates
Advanced tools
Get calendar dates for a given month - Mostly for creating a custom calendar control
Get a list of calendar dates.
This is to be used mainly for Calendar control developers.
This library is tested but is a very Alpha-ish release.
I will be adding more tests while learning Jest later on.
npm i calendar-dates
# or
yarn add calendar-dates
const CalendarDates = require("calendar-dates");
const calendarDates = new CalendarDates();
const l = console.log;
l(`April, 2018 = ${calendarDates.getDates(new Date(2018, 3)).join(",")}`);
l(calendarDates.getDateMatrix(new Date(2018, 3)));
l(`May, 2018 = ${calendarDates.getDates(new Date(2018, 4)).join(",")}`);
l(calendarDates.getDateMatrix(new Date(2018, 4)));
dance2die@CC c:\misc\sources\throwaway\calendartest
> node index.js
April, 2018 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,1,2,3,4,5,6,7,8,9,10,11,12
[ [ 1, 2, 3, 4, 5, 6, 7 ],
[ 8, 9, 10, 11, 12, 13, 14 ],
[ 15, 16, 17, 18, 19, 20, 21 ],
[ 22, 23, 24, 25, 26, 27, 28 ],
[ 29, 30, 1, 2, 3, 4, 5 ],
[ 6, 7, 8, 9, 10, 11, 12 ] ]
May, 2018 = 29,30,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,1,2,3,4,5,6,7,8,9
[ [ 29, 30, 1, 2, 3, 4, 5 ],
[ 6, 7, 8, 9, 10, 11, 12 ],
[ 13, 14, 15, 16, 17, 18, 19 ],
[ 20, 21, 22, 23, 24, 25, 26 ],
[ 27, 28, 29, 30, 31, 1, 2 ],
[ 3, 4, 5, 6, 7, 8, 9 ] ]
index.html
<html>
<head>
<title>Testing Calendar-Dates</title>
</head>
<body>
<h1>Testing calendar-dates</h1>
<script src="app.js"></script>
</body>
</html>
app.js
import CalendarDates from "calendar-dates";
const calendarDates = new CalendarDates();
const l = console.log;
l(`April, 2018 = ${calendarDates.getDates(new Date(2018, 3)).join(",")}`);
l(calendarDates.getDateMatrix(new Date(2018, 3)));
l(`May, 2018 = ${calendarDates.getDates(new Date(2018, 4)).join(",")}`);
l(calendarDates.getDateMatrix(new Date(2018, 4)));
In a browser.
April, 2018 = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,1,2,3,4,5,6,7,8,9,10,11,12
f5e330e6f0c6cbbb077bf2a2385cc536.js:87:1
[…]
0: Array [ 1, 2, 3, … ]
1: Array [ 8, 9, 10, … ]
2: Array [ 15, 16, 17, … ]
3: Array [ 22, 23, 24, … ]
4: Array [ 29, 30, 1, … ]
5: Array [ 6, 7, 8, … ]
length: 6
__proto__: Array []
f5e330e6f0c6cbbb077bf2a2385cc536.js:88:1
May, 2018 = 29,30,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,1,2,3,4,5,6,7,8,9
f5e330e6f0c6cbbb077bf2a2385cc536.js:90:1
[…]
0: Array [ 29, 30, 1, … ]
1: Array [ 6, 7, 8, … ]
2: Array [ 13, 14, 15, … ]
3: Array [ 20, 21, 22, … ]
4: Array [ 27, 28, 29, … ]
5: Array [ 3, 4, 5, … ]
length: 6
__proto__: Array []
FAQs
Get calendar dates for a given month - Mostly for creating a custom calendar control
The npm package calendar-dates receives a total of 495 weekly downloads. As such, calendar-dates popularity was classified as not popular.
We found that calendar-dates demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.