
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
web-perf-test
Advanced tools
web-perf-test
: Web performance measuring tool using PuppeteerThis is a pretty simple CLI tool for measuring the initial page loading time of a web site, using Puppeteer.
It measures until the timing data is considered stable and prints out the statistics together with a box plot.
$ npm install -g web-perf-test
usage: web-perf-test [-h] [-v] [--show-chrome] url
Automated web performance test using Puppeteer.
Positional arguments:
url URL of the page to measure
Optional arguments:
-h, --help Show this help message and exit.
-v, --version Show program's version number and exit.
--show-chrome Make the Chromium browser visible
web-perf-test
loads the given page using Puppeteer and evaluates the
loading time using the
PerformanceTiming
data in the browser.
More specifically, it calculates loadEventEnd - requestStart
.
loadEventEnd
represents the moment when the load event is completed, and
requestStart
represents the moment when the browser sent the request to obtain the actual
document.
The loading time is measured at least 25 times. After that, the tool checks if the data is stable. If it is not stable, keep measuring until it becomes stable or the total number of measurements is 50.
The data is considered stable when the median is stable, which means that its interquartile range (IQR) is <= 1% of the median. The idea is borrowed from the Rules of Thumb for HTTP/2 Push document.
FAQs
Automated web performance test using Puppeteer.
The npm package web-perf-test receives a total of 0 weekly downloads. As such, web-perf-test popularity was classified as not popular.
We found that web-perf-test 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
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.