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.
Wrapper around process.hrtime
npm install hrtimer
var hrtimer = require('hrtimer')();
hrtimer('slowFn1');
slowFn1();
hrtimer('slowFn1');
// The second call to hrtimer with the same string console.logs 'HRTimer slowFn1: 22.555161 ms' and resets the timer.
hrtimer('timer1');
hrtimer('timer2');
setTimeout(function(){
hrtimer('timer1');
// logs timer1
}, 1);
setTimeout(function(){
hrtimer('timer2');
// logs timer2
}, 1);
Use performance.now
or performance.webkitNow
in the browser.
FAQs
high-resolution time wrapper
The npm package hrtimer receives a total of 0 weekly downloads. As such, hrtimer popularity was classified as not popular.
We found that hrtimer 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.