
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
holiday-de
Advanced tools
Determine whether a given date is a German holiday
var holiday = require('holiday-de');
// set the state (Bundesland)
holiday.setState('nw');
// check your dates -> returns true
holiday.isHoliday(new Date(2015, 0, 1));
Footnote: holiday-de plays nice with moment.
bw
: Baden-Württembergby
: Bayernbe
: Berlinbb
: Brandenburghb
: Bremenhh
: Hamburghe
: Hessenmv
: Mecklenburg-Vorpommernni
: Niedersachsennw
: Nordrhein-Westfalenrp
: Rheinland-Pfalzsl
: Saarlandsn
: Sachsenst
: Sachsen-Anhaltsh
: Schleswig-Holsteinth
: ThüringenNeujahrstag
Heilige Drei Könige
Tag der Arbeit
Augsburger Friedensfest
Mariä Himmelfahrt
Tag der Deutschen Einheit
Reformationstag
Allerheiligen
Heiligabend
1. Weihnachtstag
2. Weihnachtstag
Silvester
Rosenmontag
Gründonnerstag
Karfreitag
Ostersonntag
Ostermontag
Christi Himmelfahrt
Pfingstsonntag
Pfingstmontag
Fronleichnam
Buß- und Bettag
Note that in 2017 Reformationstag
is a holiday in all states.
To check which holidays are enabled for a state, call setState()
and check the holidays
object:
holiday.setState('nw');
console.log(holiday.holidays);
To enable a additional holidays, set them to true
in the holidays
object:
holiday.holidays.Rosenmontag = true;
holiday.holidays['Augsburger Friedensfest'] = true;
FAQs
German Holidays
The npm package holiday-de receives a total of 709 weekly downloads. As such, holiday-de popularity was classified as not popular.
We found that holiday-de demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.