Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ikeohachidi/calendar-utils
Minimal utility methods for creating calendars
https://github.com/ikeohachidi/calendar-utils
Last synced: 24 days ago
JSON representation
Minimal utility methods for creating calendars
- Host: GitHub
- URL: https://github.com/ikeohachidi/calendar-utils
- Owner: ikeohachidi
- Created: 2020-05-28T10:31:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T07:15:27.000Z (almost 2 years ago)
- Last Synced: 2023-03-08T09:57:01.381Z (almost 2 years ago)
- Language: TypeScript
- Size: 680 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**What calendar-utils is**: This is a minimal library providing essential methods to easily create a calendar or something you may need accurate dates for
**What calendar-utils isn't**: This isn't a fully built calendar UI.
**But Why**: Honestly i needed it for something and thought someone might too.
## Usage
```typescript
const calendar = new CalendarUtils();// core methods
// get first day digit
calendar.getFirstDayDigit(2020, 3);// get an array containing information about every day in a month
calendar.getMonthDays(2020, 4);// helper methods
calendar.presentMonthFirstDayDigit();
calendar.presentMonthDaysCount();
calendar.presentMonthDays()
calendar.nextMonthFirstDayDigit()
calendar.nextMonthDaysCount()
calendar.nextMonthDays()
calendar.previousMonthFirstDayDigit()
calendar.previousMonthDaysCount()
calendar.previousMonthDays()
```## Missed something or there's a bug?
Please feel free to create an issue.