
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
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 15,533 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.