canirequire › CommonJS › electron-to-chromium
Is electron-to-chromium ESM-only? Can you require() it?
Provides a list of electron-to-chromium version mappings
Last verified Sep 9, 2026 against electron-to-chromium@1.5.425. JSON
CommonJS CommonJS — require() works on every Node.js version
electron-to-chromium ships CommonJS only. require("electron-to-chromium") works everywhere. import "electron-to-chromium" also works because Node.js and Bun can import CommonJS from ES modules, but only the default export is guaranteed; named imports depend on Node's static analysis of the module.
Does electron-to-chromium@1.5.425 actually load? Runtime test results
Installed and executed on Sep 9, 2026 with require("electron-to-chromium") from a CommonJS file and import "electron-to-chromium" from an ES module.
| Runtime | require("electron-to-chromium") | import "electron-to-chromium" |
|---|---|---|
| Node.js 18 | ✓ works | ✓ works |
| Node.js 20 | ✓ works | ✓ works |
| Node.js 22 | ✓ works | ✓ works |
| Node.js 24 | ✓ works | ✓ works |
| Node.js 26 | ✓ works | ✓ works |
| Bun 1.4 | ✓ works | ✓ works |
How to import electron-to-chromium
ES modules (import)
import electronToChromium from "electron-to-chromium";Named imports from a CommonJS package only work when Node.js can statically detect them. If a named import fails, use the default import and destructure.
CommonJS (require)
const electronToChromium = require("electron-to-chromium");Module format by version
Derived from the type, main and exports fields of every stable release on npm (2131 versions; the newest 60 shown).
| Versions | Format | First published |
|---|---|---|
| 1.5.365 – 1.5.425 | CommonJS | Jun 2, 2026 |
Frequently asked
Is electron-to-chromium ESM-only?
electron-to-chromium@1.5.425 is a CommonJS package. electron-to-chromium ships CommonJS only. require("electron-to-chromium") works everywhere. import "electron-to-chromium" also works because Node.js and Bun can import CommonJS from ES modules, but only the default export is guaranteed; named imports depend on Node's static analysis of the module.
Can I import electron-to-chromium with ES module syntax?
Yes. import electronToChromium from "electron-to-chromium" works in Node.js and Bun because they support importing CommonJS modules. Named imports work only when Node.js can statically detect the exports.
Does electron-to-chromium work in Bun?
Yes. import "electron-to-chromium" loaded successfully in Bun 1.4 on Sep 9, 2026.
Does electron-to-chromium ship TypeScript types?
Not bundled. Install the community types with "npm install -D @types/electron-to-chromium".
Links
Other commonjs packages
- debug 4.4.3CommonJS
- semver 7.8.5CommonJS
- ms 2.1.3CommonJS
- picomatch 4.0.7CommonJS
- ajv 8.20.0CommonJS
- source-map 0.8.0CommonJS
- react-is 19.2.8CommonJS
- readable-stream 4.7.0CommonJS
Similar popularity
- get-intrinsic 1.3.0CommonJS
- browserslist 4.28.9CommonJS
- yocto-queue 1.2.2ESM-only
- find-up 8.0.0ESM-only
- has-flag 5.0.1ESM-only
- qs 6.16.0CommonJS
- node-releases 2.0.55ESM-only
- onetime 8.0.0ESM-only