Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@testim/chrome-version
Advanced tools
Finds the version of Chrome that is installed on your machine
@testim/chrome-version is an npm package that allows you to programmatically determine the version of Google Chrome installed on your system. This can be particularly useful for automated testing, CI/CD pipelines, and other scenarios where knowing the browser version is crucial.
Get Chrome Version
This feature allows you to get the installed version of Google Chrome. The code sample demonstrates how to use the package to fetch and log the Chrome version.
const chromeVersion = require('@testim/chrome-version');
chromeVersion().then(version => {
console.log(`Chrome version: ${version}`);
}).catch(err => {
console.error('Error fetching Chrome version:', err);
});
chrome-launcher is a package that not only helps in launching Google Chrome but also provides functionality to get the installed Chrome version. It is more feature-rich compared to @testim/chrome-version as it includes capabilities to launch Chrome with specific flags and configurations.
Puppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. While its primary use case is for browser automation, it also includes methods to fetch the browser version. Puppeteer is more comprehensive and is used for end-to-end testing and web scraping.
chrome-finder is a package that helps in finding the path to the Chrome executable on different operating systems. It also provides functionality to get the Chrome version. It is similar to @testim/chrome-version but focuses more on locating the Chrome executable.
Finds the version of Chrome (or Chromium) that is installed on your machine.
npm install @testim/chrome-version
(async () => {
const { getChromeVersion } = require('@testim/chrome-version');
const includeChromium = false; // NOTE: set to true to also search for Chromium
const version = await getChromeVersion(includeChromium);
console.log(version);
})();
npm test
getChromeVersion
will return null.FAQs
Finds the version of Chrome that is installed on your machine
We found that @testim/chrome-version 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.