canirequire

canirequireCommonJS › 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.

Latest
1.5.425 (Sep 8, 2026)
Module format
CommonJS
Last CommonJS version
1.5.425
TypeScript types
@types/electron-to-chromium
Node engines
not declared
Weekly downloads
169.7M
License
ISC

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.

Runtimerequire("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).

VersionsFormatFirst published
1.5.365 – 1.5.425CommonJSJun 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

Similar popularity