![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
holidays-public
Advanced tools
Gets public holidays within specified timeframes
install package
npm install holidays-public
or
yarn add holidays-public
require in code
import getPublicHolidays from 'holidays-public'
or
const { getPublicHolidays } = require('holidays-public)
call getPublicHolidays with the specified params - dateRange and region
dateRange is an object with the keys 'start' and 'end'. The values should be a string with the format 'YYYY-MM-DD'
i.e. { start: '2019-08-11', end: '2019-08-18' }
If no date range is supplied, the next public holiday from today will be returned.
If the date range object does not contain a start AND end key, an empty array will be returned.
region is a string. Valid regions are 'england-and-wales', 'scotland' and 'northern-ireland'. If no daterange is supplied it will default to england-and-wales.
If an invalid region is requested an empty array will be returned.
Get next public holiday (england-and-wales)
const holidays = getPublicHolidays()
Get next public holiday for Scotland
const holidays = getPublicHolidays(null, 'scotland')
Get public holidays in August 2019
const holidays = getPublicHolidays({ start: '2019-08-01', end: '2019-08-31' }, 'northern-ireland')
or without region (defaults to england-and-wales)
const holidays = getPublicHolidays({ start: '2019-08-01', end: '2019-08-31' })
FAQs
gets public holidays within a specified timeframe
The npm package holidays-public receives a total of 4 weekly downloads. As such, holidays-public popularity was classified as not popular.
We found that holidays-public 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.