
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
Get the number of weeks in year - leap or not.
npm install year-weeks
npm test
For more use-cases see the tests
Get the number of weeks in year - leap or not.
[val] {Date|Number} every valid Date format string, Date object or year as numberreturn {Number}Example:
var yearWeeks = require('year-weeks');
yearWeeks(2014);
//=> 52
yearWeeks(2016);
//=> 52
yearWeeks(new Date(2016, 0));
//=> 52
yearWeeks('2012-12-17T03:24:00');
//=> 52
Charlike Mike Reagent
Copyright (c) 2014-2015 Charlike Mike Reagent, contributors.
Released under the MIT license.
Powered and automated by kdf, January 26, 2015
FAQs
Get the number of weeks in year - leap or not.
The npm package year-weeks receives a total of 11 weekly downloads. As such, year-weeks popularity was classified as not popular.
We found that year-weeks demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.