CapyCalendar is a JavaScript library that provides utilities for working with dates and calendars. It allows you to calculate the number of days in a specific month, check if a year is a leap year, and more. Made with love by capybaras <3
You can install CapyCalendar using npm:
npm install capycalendar
import { checkIfLeapYear, getDaysInMonth } from "capycalendar";
You can use the getDaysInMonth function to calculate the number of days in a specific month:
const daysInMarch2023 = getDaysInMonth(2023, 3);
console.log(daysInMarch2023); // Output: 31
const is2024LeapYear = isLeapYear(2024);
console.log(is2024LeapYear); // Output: true
Calculate the number of days in a specific month.
Returns the number of days in the specified month.
Contributions to CapyCalendar are welcome! If you have any bug fixes, improvements, or new features, feel free to open a pull request ^^