Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@itenium/date-holidays-be
Advanced tools
Zero dependency functions to determine the official Belgian holidays for a given year in NL/FR/EN/DE
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 1 weekly downloads. As such, @itenium/date-holidays-be popularity was classified as not popular.
We found that @itenium/date-holidays-be 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.