Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Mondays is a utility library to cope with Mondays.
Mondays could be hard, this library should ease your way with them.
Install the library with npm
> npm install mondays
and import it in your js
var mondays = require("mondays");
Every method defaults to the current date if no argument is provided
Returns a boolean stating if the date provided is a Monday
mondays.isMonday(date);
Returns a Date object representing the next Mondaym relative to the date provided
mondays.getNextMonday(date);
Returns a Date object representing the previous Monday, relative to the date provided
mondays.getPrevMonday(date);
Returns the number of days until the next Monday, relative to the date provided
mondays.daysUntilMonday(date);
Returns the number of days since last Monday, relative to the date provided
mondays.daysSinceMonday(date);
v2.0.0
v1.0.1
v1.0.0
FAQs
A utility library to cope with Mondays
We found that mondays 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.