Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
loadavg-windows
Advanced tools
Use require('loadavg-windows')
to enjoy os.loadavg()
on Windows OS (or force using custom implementation on any other OS).
Currently Node.js on Windows platform do not implements os.loadavg()
functionality - it returns [0,0,0]
require('loadavg-windows').enableCustomLoadavg()
called manually.Just one line required to enjoy os.loadavg()
on Windows OS:
require('loadavg-windows');
setInterval( () => {
console.log( os.loadavg() );
}, 3000);
Can be activated on any other OS in case native version not working (on Windows OS it is enabled by default)
const { useCustomLoadavg } = require('loadavg-windows');
useCustomLoadavg();
Requires Node.js v4.8.7
npm install loadavg-windows
This is pure JavaScript, platform-independent implementation of os.loadavg()
that can be used on Windows system
(or any other system that for some reasons do not supports loadavg)
It uses only os.cpus()
for proper calculations.
FAQs
Enables os.loadavg for Windows (and optionally any other OS)
The npm package loadavg-windows receives a total of 9,349 weekly downloads. As such, loadavg-windows popularity was classified as popular.
We found that loadavg-windows 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.