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.
date helpers to range, group, aggregate collections
Using npm:
npm install datepress
In Node.js:
const DP = require('datepress');
const moment = require('moment');
let start = new Date();
let end = moment(start).add(10, 'days').toDate();
let delimiter = 'days';
let dates = DP.range(start, end, delimiter);
console.log(dates);
console.log(DP.groupBy(dates, 'days'));
DP.findIndex(collection, date, access);
access is function used to get the date from a item of the collection. If not provided it defaults to identity function.
DP.slice(collection, start, end, access);
DP.batch(collection, delimiter, access);
Returns batches from collection by provided delimiter. A delimiter parameter can be input known from moment.js like 'days', 'minutes',...
MIT © Andre Stehle
FAQs
date helpers to range, group, aggregate collections
The npm package datepress receives a total of 1 weekly downloads. As such, datepress popularity was classified as not popular.
We found that datepress 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.