1.0.0 • Published 9 months ago

capycalendar v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

CapyCalendar Library

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

Installation

You can install CapyCalendar using npm:

npm install capycalendar

Usage

const capycalendar = require('capycalendar');

Get Days in a Month

You can use the getDaysInMonth function to calculate the number of days in a specific month:

const daysInMarch2023 = capycalendar.getDaysInMonth(2023, 3);
console.log(daysInMarch2023); // Output: 31

Check if a Year is a Leap Year

const is2024LeapYear = capycalendar.isLeapYear(2024);
console.log(is2024LeapYear); // Output: true

API Reference

getDaysInMonth(year, month)

Calculate the number of days in a specific month.

'year' (number): The year (e.g., 2023). This parameter is optional

'month' (number): The month (1 to 12).

Returns the number of days in the specified month.

Contributing

Contributions to CapyCalendar are welcome! If you have any bug fixes, improvements, or new features, feel free to open a pull request ^^

Origin

github

ansi-escapesansi-regexansi-stylesanymatchargparsebabel-jestbabel-plugin-istanbulbabel-plugin-jest-hoistbabel-preset-current-node-syntaxbabel-preset-jestbalanced-matchbrace-expansionbracesbrowserslistbserbuffer-fromcallsitescamelcasecaniuse-litechalkchar-regexci-infocjs-module-lexercliuicocollect-v8-coveragecolor-convertcolor-nameconcat-mapconvert-source-mapcross-spawndebugdedentdeepmergedetect-newlinediff-sequenceselectron-to-chromiumemitteryemoji-regexerror-exescaladeescape-string-regexpesprimaexecaexitexpectfast-json-stable-stringifyfb-watchmanfill-rangefind-upfs.realpathfunction-bindgensyncget-caller-fileget-package-typeget-streamglobglobalsgraceful-fshashas-flaghtml-escaperhuman-signalsimport-localimurmurhashinflightinheritsis-arrayishis-core-moduleis-fullwidth-code-pointis-generator-fnis-numberis-streamisexeistanbul-lib-coverageistanbul-lib-instrumentistanbul-lib-reportistanbul-lib-source-mapsistanbul-reportsjest-changed-filesjest-circusjest-clijest-configjest-diffjest-docblockjest-eachjest-environment-nodejest-get-typejest-haste-mapjest-leak-detectorjest-matcher-utilsjest-message-utiljest-mockjest-pnp-resolverjest-regex-utiljest-resolvejest-resolve-dependenciesjest-runnerjest-runtimejest-snapshotjest-utiljest-validatejest-watcherjest-workerjs-tokensjs-yamljsescjson-parse-even-better-errorsjson5kleurlevenlines-and-columnslocate-pathlru-cachemake-dirmakeerrormerge-streammicromatchmimic-fnminimatchmsnatural-comparenode-int64node-releasesnormalize-pathnpm-run-pathonceonetimep-limitp-locatep-tryparse-jsonpath-existspath-is-absolutepath-keypath-parsepicocolorspicomatchpiratespkg-dirpretty-formatpromptspure-randreact-isrequire-directoryresolveresolve-cwdresolve-fromresolve.exportssemvershebang-commandshebang-regexsignal-exitsisteransislashsource-mapsource-map-supportsprintf-jsstack-utilsstring-lengthstring-widthstrip-ansistrip-bomstrip-final-newlinestrip-json-commentssupports-colorsupports-preserve-symlinks-flagtest-excludetmplto-fast-propertiesto-regex-rangetype-detecttype-festupdate-browserslist-dbv8-to-istanbulwalkerwhichwrap-ansiwrappywrite-file-atomicy18nyallistyargsyargs-parseryocto-queue
1.0.0

9 months ago