Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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.
The npm package ages receives a total of 0 weekly downloads. As such, ages popularity was classified as not popular.
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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.