
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
datetime-helpers
Advanced tools
datetime-helpers provides functions to work with dates and time.
getLocalizedDayOfWeekimport { getLocalizedDayOfWeek } from 'datetime-helpers';
getLocalizedDayOfWeek('en', DayOfWeek.Wednesday)
// returns the localized day of week name for English language
/*
{
isoNumber: 3,
name: {
narrow: 'W',
short: 'Wed',
long: 'Wednesday'
}
}
*/
getLocalizedDaysOfWeekimport { DayOfWeek, getLocalizedDaysOfWeek } from 'datetime-helpers';
getLocalizedDaysOfWeek('en-UK')
// returns a list of the 7 days of week, starting from Monday
getLocalizedDaysOfWeek('en-UK', DayOfWeek.Sunday)
// returns a list of the 7 days of week, starting from Sunday
getMonthGridimport { DayOfWeek, getMonthGrid } from 'datetime-helpers';
getMonthGrid(Temporal.PlainYearMonth.from({ year: 2022, month: 10 }))
// returns the month grid for October 2022, with weeks starting on Monday
// the grid is a 2-dimensional array (6 weeks x 7 days of week)
getMonthGrid(Temporal.PlainYearMonth.from({ year: 2022, month: 10 }), DayOfWeek.Sunday)
// returns the month grid for October 2022, with weeks starting on Sunday
You can get datetime-helpers via npm.
npm install datetime-helpers
FAQs
Utility functions for working with dates and time
The npm package datetime-helpers receives a total of 1 weekly downloads. As such, datetime-helpers popularity was classified as not popular.
We found that datetime-helpers 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.