All Projects → mitica → public-holidays-js

mitica / public-holidays-js

Licence: other
Public holidays by country. Readonly from google calendar. Nodejs module.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to public-holidays-js

holidata
Holidata is the core of holidata.net, a no-nonsense, ad-free provider of international holiday data.
Stars: ✭ 27 (+50%)
Mutual labels:  holidays, holiday
moment-holiday
A Moment.js plugin for handling holidays. NO LONGER MAINTAINED (DEPRECATED)
Stars: ✭ 82 (+355.56%)
Mutual labels:  holidays, holiday
Eventcal
Filter to only include attending and maybe facebook events in ical and google calendar
Stars: ✭ 187 (+938.89%)
Mutual labels:  google-calendar
finql
A quantitative finance toolbox
Stars: ✭ 21 (+16.67%)
Mutual labels:  holidays
BusinessDays.jl
📆 A highly optimized Business Days calculator written in Julia language. Also known as Working Days calculator.
Stars: ✭ 53 (+194.44%)
Mutual labels:  holidays
Add Event To Calendar Docs
📅 Docs how to generate links to add events to online calendar services
Stars: ✭ 193 (+972.22%)
Mutual labels:  google-calendar
timeclock
Simple work time clocking service
Stars: ✭ 21 (+16.67%)
Mutual labels:  holidays
Alfred Gcal
View Google Calendar events in Alfred
Stars: ✭ 147 (+716.67%)
Mutual labels:  google-calendar
Notion-GCal-Sync
A Python script to automate the syncing of tasks between Google Calendar and the all-in-one productivity workspace, Notion. It utilizes API and is customizable for your own needs. Free to use.
Stars: ✭ 120 (+566.67%)
Mutual labels:  google-calendar
luxon-business-days
A Luxon plugin for calculating and manipulating business days and holidays.
Stars: ✭ 29 (+61.11%)
Mutual labels:  holidays
calendar-holidays
🎄Holidays abstraction for Aeon time management framework
Stars: ✭ 12 (-33.33%)
Mutual labels:  holidays
colombian-holidays
Lightweight module to get Colombian holidays for any given year
Stars: ✭ 16 (-11.11%)
Mutual labels:  holidays
Gam
command line management for Google Workspace
Stars: ✭ 2,558 (+14111.11%)
Mutual labels:  google-calendar
hebcal-es6
Hebcal, a perpetual Jewish Calendar (ES6)
Stars: ✭ 45 (+150%)
Mutual labels:  holidays
Eink Calendar
Smart calendar with EInk display and Raspberry Pi
Stars: ✭ 191 (+961.11%)
Mutual labels:  google-calendar
Googlecontactseventsnotifier
Receive automatic email notifications before your Google Contacts birthday and other events!
Stars: ✭ 177 (+883.33%)
Mutual labels:  google-calendar
Calendarific
Calendarific holiday sensor for Home Assistant
Stars: ✭ 14 (-22.22%)
Mutual labels:  holidays
magister-calendar
📅 Automatically plan your Magister appointments in your Google calendar.
Stars: ✭ 12 (-33.33%)
Mutual labels:  google-calendar
China
🇨🇳 一个轻巧的中国的地区、民族以及节假日信息的查询PHP库
Stars: ✭ 51 (+183.33%)
Mutual labels:  holidays
new-year-garland
New Year Garland — Новогодняя гирлянда
Stars: ✭ 20 (+11.11%)
Mutual labels:  holidays

public-holidays

Gets public holidays from google calendar.

Usage

import { getHolidays } from 'public-holidays';
// public holidays for US in English
const options = { country: 'us', lang: 'en' };

const holidays = await getHolidays(options);

API (v0.2)

formatCalendarUrl(country, lang): string

Format google calendar url by country and language.

getHolidays(options): Promise<Holiday[]>

Get public holidays by options.

options:

  • country (string) (required) - country 2 letters code: us, ru
  • lang (string) (required) - language 2 letters code: en, ru
  • start (Date) (optional) - start date
  • end (Date) (optional) - end date
  • timeout (number) (optional) - request timeout in ms

types:

type Holiday = {
    date: Date
    name: string
}
type Options = {
    country: string
    lang: string
    start?: Date
    end?: Date
    timeout?: number
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].