
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).
fast-api-speedtest
Advanced tools
This library allows you to test speed with Netflix's Fast.com site.
Measure the speed of your internet connection with Netflix's Fast.com speed test.
$ npm install --save fast-api-speedtest
const { FastAPI, SpeedUnits } = require('fast-api-speedtest');
const FastTest = new FastAPI({
measureUpload: true,
downloadUnit: SpeedUnits.MBps,
timeout: 60000
});
FastTest.runTest().then(result => {
console.log(`Ping: ${result.ping} ms`);
console.log(`Download speed: ${result.downloadSpeed} ${result.downloadUnit}`);
console.log(`Upload speed: ${result.uploadSpeed} ${result.uploadUnit}`);
}).catch(e => {
console.error(e.message);
});
Property | Type | Default | |
---|---|---|---|
measureUpload | Boolean | false | To wait for the upload speed result |
uploadUnit | SpeedUnits / String | Mbps | The resulting unit of upload speed |
downloadUnit | SpeedUnits / String | Mbps | The resulting unit of download speed |
timeout | Number | 40000 | Limit how long the speed test can run |
executablePath | String | - | Path to the Chrome startup file. You can use it if Puppeteer failed to start. |
Property | Type | |
---|---|---|
ping* | Number | Network ping |
downloadSpeed | Number | Network download speed |
uploadSpeed* | Number | Network upload speed |
pingUnit* | String | Network ping unit |
downloadUnit | String | Network download speed unit |
uploadUnit* | String | Network upload speed unit |
servers | String[] | Location(s) of test server(s) |
* only available when the "measureUpload" property is set to true
I want to make this package multifunctional to allow the use of additional speed testing sites and to allow you to choose the best test exactly for you.
FAQs
This library allows you to test speed with Netflix's Fast.com site.
The npm package fast-api-speedtest receives a total of 8 weekly downloads. As such, fast-api-speedtest popularity was classified as not popular.
We found that fast-api-speedtest 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.