
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Calculate the start of the nth full week of a year or month.
Calculate the start of the nth week of a year
Calculate the start of the nth week of a month
Calculate the start of the nth week of a month defining on what day weeks start
Note:
month
andstartOfWeek
parameters use JavaScript's indexing approach (January = 0, first day of the week = 0)
import fullWeek from 'full-week';
// start of first full week of 2021
fullWeek(1, 2021); // 2021-01-04T00:00:00
// start of 3rd full week of November 2018
fullWeek(3, 2018, 10); // 2018-11-19T00:00:00
const firstFullWeek = (year, month) => fullWeek(1, year, month);
// start of first full week of November 2018
firstFullWeek(2018, 10); // 2018-11-05T00:00:00
// start of first full week of 2019
firstFullWeek(2019); // 2019-01-07T00:00:00
// start of last full week of April 2019
fullWeek(-1, 2019, 4); // 2019-04-22T00:00:00
FAQs
Calculate the start of the nth full week of a year or month.
We found that full-week 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.