
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
year-seconds
Advanced tools
Get the number of seconds/milliseconds in leap/noleap year.
npm i --save year-seconds
npm test
For more use-cases see the tests
Get the number of seconds/milliseconds in leap/noleap year.
[year] {Number} year number, pass to year-days[bool] {Boolean} when true, returns seconds, pass to day-secondsreturn {Number}Example:
var yearSeconds = require('year-seconds');
yearSeconds();
//=> 31536000000 milliseconds
yearSeconds(false);
//=> 31536000000 milliseconds
yearSeconds('str');
//=> 31536000000 milliseconds
yearSeconds(/regex/gi);
//=> 31536000000 milliseconds
yearSeconds([1, 2, 3]);
//=> 31536000000 milliseconds
yearSeconds(2016);
//=> 31622400000 milliseconds
yearSeconds(2016, true);
//=> 31622400 seconds
yearSeconds(2014);
//=> 31536000000 milliseconds
yearSeconds(2014, true);
//=> 31536000 seconds
Charlike Mike Reagent
Copyright (c) 2014-2015 Charlike Mike Reagent, contributors.
Released under the MIT license.
Powered and automated by kdf, March 02, 2015
FAQs
Get the number of seconds/milliseconds in leap/noleap year.
We found that year-seconds 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.

Security News
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.