Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
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.
The npm package full-week receives a total of 10 weekly downloads. As such, full-week popularity was classified as not popular.
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.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.