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.
@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.
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.