Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
first-last-weekday
Advanced tools
This module provides a tool to get the date of first or last weekday from a specified date.
I use it to parse the Olson Timezone Rule File.
npm install first-last-weekday
firstLastWeekDay = require './lib/index'
d = new Date('2013-05-30')
# firstSun ~ firstSat
console.log 'firstSun', firstLastWeekDay.firstSun(d).toDateString()
# lastSun ~ lastSat
console.log 'lastSun', firstLastWeekDay.lastSun(d).toDateString()
result:
firstSun Sun Jun 02 2013
lastSun Sun May 26 2013
Code written in Coffee-Script then compiled by grunt.
FAQs
Get the date of first/last weekday from a specified date
The npm package first-last-weekday receives a total of 1 weekly downloads. As such, first-last-weekday popularity was classified as not popular.
We found that first-last-weekday 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.