Gathering detailed insights and metrics for electron-to-chromium
Gathering detailed insights and metrics for electron-to-chromium
Gathering detailed insights and metrics for electron-to-chromium
Gathering detailed insights and metrics for electron-to-chromium
electron-builder-sandbox-fix
Apply no-sandbox flag automatically when required to fix SUID sandbox helper errors
electron-image-resize
Resize images using Electron. Supports all image types that Chromium/Electron supports, outputs to png, jpeg, dataUrl or NativeImage.
@neuralegion/cypress-har-generator
The Cypress plugin for generating HTTP Archive (HAR) files is a tool that allows developers and QA engineers to capture detailed information about network requests made during the execution of Cypress tests.
graderjs
Tool to copy the Grader.JS base repo into the current directory
Provides a list of electron-to-chromium version mappings
npm install electron-to-chromium
Typescript
Module System
Node Version
NPM Version
99.9
Supply Chain
99.6
Quality
95.3
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
10,087,962,852
Last Day
11,434,731
Last Week
62,288,029
Last Month
263,906,790
Last Year
2,657,766,177
ISC License
147 Stars
4,673 Commits
27 Forks
5 Watchers
6 Branches
10 Contributors
Updated on May 08, 2025
Minified
Minified + Gzipped
Latest Version
1.5.151
Package Id
electron-to-chromium@1.5.151
Unpacked Size
159.81 kB
Size
28.46 kB
File Count
12
NPM Version
8.19.4
Node Version
16.20.2
Published on
May 08, 2025
Cumulative downloads
Total Downloads
Last Day
45%
11,434,731
Compared to previous day
Last Week
5.4%
62,288,029
Compared to previous week
Last Month
-0.5%
263,906,790
Compared to previous month
Last Year
23.6%
2,657,766,177
Compared to previous year
6
This repository provides a mapping of Electron versions to the Chromium version that it uses.
This package is used in Browserslist, so you can use e.g. electron >= 1.4
in Autoprefixer, Stylelint, babel-preset-env and eslint-plugin-compat.
Supported by:
Install using npm install electron-to-chromium
.
To include Electron-to-Chromium, require it:
1var e2c = require('electron-to-chromium');
The Electron-to-Chromium object has 4 properties to use:
versions
An object of key-value pairs with a major Electron version as the key, and the corresponding major Chromium version as the value.
1var versions = e2c.versions; 2console.log(versions['1.4']); 3// returns "53"
fullVersions
An object of key-value pairs with a Electron version as the key, and the corresponding full Chromium version as the value.
1var versions = e2c.fullVersions; 2console.log(versions['1.4.11']); 3// returns "53.0.2785.143"
chromiumVersions
An object of key-value pairs with a major Chromium version as the key, and the corresponding major Electron version as the value.
1var versions = e2c.chromiumVersions; 2console.log(versions['54']); 3// returns "1.4"
fullChromiumVersions
An object of key-value pairs with a Chromium version as the key, and an array of the corresponding major Electron versions as the value.
1var versions = e2c.fullChromiumVersions; 2console.log(versions['54.0.2840.101']); 3// returns ["1.5.1", "1.5.0"]
electronToChromium(query)
Arguments:
A function that returns the corresponding Chromium version for a given Electron function. Returns a string.
If you provide it with a major Electron version, it will return a major Chromium version:
1var chromeVersion = e2c.electronToChromium('1.4'); 2// chromeVersion is "53"
If you provide it with a full Electron version, it will return the full Chromium version.
1var chromeVersion = e2c.electronToChromium('1.4.11'); 2// chromeVersion is "53.0.2785.143"
If a query does not match a Chromium version, it will return undefined
.
1var chromeVersion = e2c.electronToChromium('9000'); 2// chromeVersion is undefined
chromiumToElectron(query)
Arguments:
Returns a string with the corresponding Electron version for a given Chromium query.
If you provide it with a major Chromium version, it will return a major Electron version:
1var electronVersion = e2c.chromiumToElectron('54'); 2// electronVersion is "1.4"
If you provide it with a full Chrome version, it will return an array of full Electron versions.
1var electronVersions = e2c.chromiumToElectron('56.0.2924.87'); 2// electronVersions is ["1.6.3", "1.6.2", "1.6.1", "1.6.0"]
If a query does not match an Electron version, it will return undefined
.
1var electronVersion = e2c.chromiumToElectron('10'); 2// electronVersion is undefined
electronToBrowserList(query)
DEPRECATEDArguments:
Deprecated: Browserlist already includes electron-to-chromium.
A function that returns a Browserslist query that matches the given major Electron version. Returns a string.
If you provide it with a major Electron version, it will return a Browserlist query string that matches the Chromium capabilities:
1var query = e2c.electronToBrowserList('1.4'); 2// query is "Chrome >= 53"
If a query does not match a Chromium version, it will return undefined
.
1var query = e2c.electronToBrowserList('9000'); 2// query is undefined
All lists can be imported on their own, if file size is a concern.
versions
1var versions = require('electron-to-chromium/versions');
fullVersions
1var fullVersions = require('electron-to-chromium/full-versions');
chromiumVersions
1var chromiumVersions = require('electron-to-chromium/chromium-versions');
fullChromiumVersions
1var fullChromiumVersions = require('electron-to-chromium/full-chromium-versions');
This package will be updated with each new Electron release.
To update the list, run npm run build.js
. Requires internet access as it downloads from the canonical list of Electron versions.
To verify correct behaviour, run npm test
.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
3 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-05-05
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More