
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
MarCal is a TypeScript library that provides a stock market calendar for stock trading applications.
For now, it provides the calendar for the years 2025 and 2026.
Note that all major U.S. stock exchanges (NYSE, NASDAQ, and AMEX) operate on synchronized trading hours:
npm install marcal
import { MarCal } from 'marcal';
const marCal: MarCal = new MarCal();
const isMarketOpen: boolean = marCal.marketOpen();
if (isMarketOpen) {
console.log('US market is open');
} else {
console.log('US market is closed');
}
/**
* Checks if the US stock market is currently open during regular trading hours (9:30 AM - 4:00 PM ET).
* Returns true if market is open, false otherwise
*/
marketOpen(): boolean
/**
* Checks if the US stock market is in pre-market trading hours (4:00 AM - 9:30 AM ET).
* Returns true if in pre-market session, false otherwise
*/
preMarket(): boolean
/**
* Checks if the US stock market is in after-hours trading session (4:00 PM - 8:00 PM ET).
* Returns true if in after-hours session, false otherwise
*/
afterMarket(): boolean
/**
* Calculates remaining time until market close (4:00 PM ET).
* Returns number of minutes until market closes. Returns 0 if market is already closed.
*/
minutesToClose(): number
/**
* Checks if the current day is a holiday or weekend.
* Returns true if the day is a holiday or weekend, false otherwise
*/
isHolidayOrWeekend(): boolean
We welcome contributions to MarCal! To contribute, please:
git clone the repositoryThe codebase adheres to the Airbnb JavaScript Style Guide
and follows the linting rules defined in .eslintrc.json. Please ensure your code matches
these standards before submitting.
This source code is available to everyone under the standard MIT LICENSE.
FAQs
Exchanges Calendar for Trading Applications
The npm package marcal receives a total of 24 weekly downloads. As such, marcal popularity was classified as not popular.
We found that marcal 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.

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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.