Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
nyse-holidays
Advanced tools
Readme
Get all NYSE markets observe U.S. holidays since 1885
yarn add nyse-holidays
import { isHoliday, getHolidays } from "nyse-holidays";
console.log(isHoliday(new Date("2021-01-01"))); // true
console.log(isHoliday(new Date("2022-01-01"))); // false
console.log(getHolidays(2021));
/*
[
{
name: 'New Years Day',
date: 2020-12-31T16:00:00.000Z,
dateString: '2021-01-01'
},
{
name: 'Martin Luther King, Jr. Day',
date: 2021-01-17T16:00:00.000Z,
dateString: '2021-01-18'
},
{
name: "Washington's Birthday",
date: 2021-02-14T16:00:00.000Z,
dateString: '2021-02-15'
},
{
name: 'Good Friday',
date: 2021-04-01T16:00:00.000Z,
dateString: '2021-04-02'
},
{
name: 'Memorial Day',
date: 2021-05-30T16:00:00.000Z,
dateString: '2021-05-31'
},
{
name: 'Independence Day',
date: 2021-07-04T16:00:00.000Z,
dateString: '2021-07-05'
},
{
name: 'Labor Day',
date: 2021-09-05T16:00:00.000Z,
dateString: '2021-09-06'
},
{
name: 'Thanksgiving Day',
date: 2021-11-24T16:00:00.000Z,
dateString: '2021-11-25'
},
{
name: 'Christmas Day',
date: 2021-12-23T16:00:00.000Z,
dateString: '2021-12-24'
}
]
*/
FAQs
Get all NYSE markets observe U.S. holidays
The npm package nyse-holidays receives a total of 489 weekly downloads. As such, nyse-holidays popularity was classified as not popular.
We found that nyse-holidays 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
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.