{"repo":"AnandChowdhary/calendar-slots","free":true,"listed":false,"github":"https://github.com/AnandChowdhary/calendar-slots","clone":"git clone https://github.com/AnandChowdhary/calendar-slots.git","description":"🗓️ Find empty appointment slots in a user's calendar","language":"TypeScript","stars":21,"topics":["google-calendar","calendar","nodejs","typescript","calendar-api"],"license":"MIT","category":"productivity","readme_excerpt":"🗓️ Calendar Slots Find availability for a user based on their calendar. Works with Google Calendar or any iCalendar URL. 💡 Usage Install the package from npm: Import and use: Each Slot has two Date objects, start and end . The from and to properties accept native Date objects, moment objects, or other values that moment understands like date strings and UNIX timestamp numbers. ⚒️ Configuration Key Type Description ------------------- -------------------------- --------------------------------- slotDuration number Duration in minutes slots number Number of slots to find from (required) Date or similar Start time to (required) Date or similar End time days number[] Days of the week to use daily.timezone string Timezone for time restrictions daily.from [number, number?, number?] Start [hours, minutes, seconds] daily.to [number, number?, number?] End [hours, minutes, seconds] strategies string Recommendation strategies padding number Time (min) between events slotFilter (slot: Slot) = boolean Custom filter for available slots url . string iCalendar URL calendarId string Specific Google Calender ID auth Google API OAuth2 client API client to use user.accessToken string User's access token user.refreshToken string User's refresh token log boolean Whether to console.log steps logger (...args: any[]) = void Custom function for logging iCalendar Any iCalendar-compliant URL is supported; all major calendar providers (Google Calendar, Apple Calendar, Microsoft Outlook, Yahoo! Calendar","default_branch":null,"files":null,"tree":[],"storefront":"/r/AnandChowdhary","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/AnandChowdhary/calendar-slots/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}