latest-chrome-version
v3.0.0
Published
get latest chrome version
Readme
latest-chrome-version
A lightweight library to fetch the latest Google Chrome version from the official Chrome for Testing API.
Installation
npm install latest-chrome-version
# or
yarn add latest-chrome-version
# or
pnpm add latest-chrome-versionUsage
import { latestChromeVersion } from 'latest-chrome-version';
async function checkVersion() {
try {
const version = await latestChromeVersion();
console.log(`Latest Stable Chrome version: ${version}`);
} catch (err) {
console.error('Error fetching Chrome version:', err);
}
}
checkVersion();API
latestChromeVersion(): Promise<string>
Returns a Promise that resolves to the latest Stable Google Chrome version string (e.g., 121.0.6167.85).
Data is fetched directly from Google Chrome Labs' reliable source.
License
This project is licensed under the ISC License.
