Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
@itenium/date-holidays-be
Advanced tools
Readme
Provides the official Belgian holidays in NL/FR/DE/EN.
A zero dependency package to get the official Belgian holidays.
npm install --save @itenium/date-holidays-be
import { isHoliday, getHolidays } from '@itenium/date-holidays-be';
const holiday: boolean = isHoliday(new Date(2023, 0, 1));
const holidays: Holiday[] = getHolidays(2023);
type Holiday = {
date: Date;
labels: {
nl: string;
fr: string;
de: string;
en: string;
}
}
If you just need to calculate something very specific,
importing date-holidays
results in a whopping 10MB dependency.
This turned out to be a performance issue that came up during our "React Component Profiling" technical session at itenium.
npm install
npm run build
# Run tests
npm t
npm run build
npm login # username: itenium
npm publish --access public
FAQs
Zero dependency functions to determine the official Belgian holidays for a given year in NL/FR/EN/DE
The npm package @itenium/date-holidays-be receives a total of 2 weekly downloads. As such, @itenium/date-holidays-be popularity was classified as not popular.
We found that @itenium/date-holidays-be demonstrated a healthy version release cadence and project activity because the last version was released less than 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
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.