Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
spacetime-holiday
Advanced tools
Readme
Some holidays are the same day every year, some holidays change astronomically, some by calendar rules like 'third thursday in June'.
This library tries its best to reconcile them.
if it finds a date, it returns a spacetime object.
to conserve filesize of your build, spacetime is a peerDependency, so must be installed separately:
npm i spacetime
npm i spacetime-holiday
const spacetimeHoliday = require('spacetime-holiday')
let s = spacetimeHoliday('easter monday', 2020)
s.format('iso-short')
// 2020-04-12
spacetimeHoliday('groundhog day').format('day') // defaults to next instance
// 'Saturday'
spacetimeHoliday('fall equinox', 2030).format('nice-year')
// 'Sept 22nd, 2030'
// add a timezone
let s = spacetimeHoliday('ramadan', 2019, 'Canada/Pacific')
s.iso()
// 2019-05-05T00:00:00.000-07:00
work-in-progress!
american/western holidays 👍
Easter-based christian holidays 👍
Astronomical holidays 👍
Muslim holidays (predicted) 😞
Jewish-calendar holidays (not implemented) 😞
Chinese-calendar holidays (not implemented) 😞
MIT
FAQs
reckoning of common holiday dates
The npm package spacetime-holiday receives a total of 1,467 weekly downloads. As such, spacetime-holiday popularity was classified as popular.
We found that spacetime-holiday 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.