
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
kenya-holidays
Advanced tools
A simple package to retrieve all Kenyan public holidays for a given year
A simple npm package to get all Kenyan public holidays for a given year.
npm install kenya-holidays
const { getKenyanHolidays } = require('kenya-holidays');
// Get holidays for the current year
const holidays = getKenyanHolidays();
console.log(holidays);
// Get holidays for a specific year
const holidays2024 = getKenyanHolidays(2024);
console.log(holidays2024);
// Get formatted dates (YYYY-MM-DD)
const formattedHolidays = getKenyanHolidays(null, true);
console.log(formattedHolidays);
const { getDetailedKenyanHolidays } = require('kenya-holidays');
// Get detailed holiday information for the current year
const detailedHolidays = getDetailedKenyanHolidays();
console.log(detailedHolidays);
// Example output:
// [
// {
// name: "New Year's Day",
// date: "2025-01-01",
// type: "National",
// description: "Celebrates the start of the new year",
// isVariable: false
// },
// ...
// ]
const { isKenyanHoliday } = require('kenya-holidays');
// Check if a specific date is a holiday
const holiday = isKenyanHoliday('2025-12-25');
if (holiday) {
console.log(`${holiday.date} is ${holiday.name} (${holiday.type})`);
console.log(`Description: ${holiday.description}`);
} else {
console.log('Not a holiday');
}
// You can also pass a Date object
const dateObj = new Date(2025, 11, 25); // December 25, 2025
const christmasHoliday = isKenyanHoliday(dateObj);
console.log(christmasHoliday); // Returns holiday info
The package includes the following Kenyan public holidays:
*Note: Islamic holidays depend on the lunar calendar and may vary. The package provides a note for these dates rather than calculating them.
MIT
FAQs
A simple package to retrieve all Kenyan public holidays for a given year
The npm package kenya-holidays receives a total of 5 weekly downloads. As such, kenya-holidays popularity was classified as not popular.
We found that kenya-holidays 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.