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.
Your terrible time estimator.
ages.until(weekFromNow); // 1w
ages.until(now); // 1m
ages.until(inAThousandYears); // ?
ages.ago(tuesday, thursday); // 2d
ages.ago(nextWeek, today); //-1w
ages.ago(theNineties); // ? (im so old)
// customize formatting
// live life dangerously
ages.ago(a, b, {
minute: 'years',
hour: 'minutes',
day: 'week',
week: 'years',
month: '?',
year: 'month',
fallback: 'seconds'
});
ages.ago(target[, fromDate[, formats]]) -> String
Returns an estimate of how long ago a given date was.
Takes the following arguments:
target
Date|String|Number - the target datefromDate
Date|String|Number - the start date (defaults to now)formats
Object - customize formatting of different unitsages.until(target[, fromDate[, formats]]) -> String
Returns an estimate of how long until given a date is.
Takes the following arguments:
target
Date|String|Number - the target datefromDate
Date|String|Number - the start date (defaults to now)formats
Object - customize formatting of different unitsages.msToString(ms[, formats]) -> String
Returns a rough estimation of the milliseconds given.
Takes the following arguments:
ms
Number - positive time in millisecondsformats
Object - customize formatting of different unitsFAQs
Your terrible time estimator.
We found that ages 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.