# Is electron-to-chromium ESM-only? Can you require() it?

> electron-to-chromium@1.5.425 is a CommonJS package. CommonJS — require() works on every Node.js version we test.

Provides a list of electron-to-chromium version mappings

Last verified Sep 9, 2026 against electron-to-chromium@1.5.425.

electron-to-chromium ships CommonJS only. require("electron-to-chromium") works on every Node.js version we test (18, 20, 22, 24 and 26) and in Bun. 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.

## What to do

1. require("electron-to-chromium") works on every Node.js version we test (18, 20, 22, 24 and 26) and in Bun.
2. From ES modules use the default import: import electronToChromium from "electron-to-chromium"; then destructure. Named imports only work when Node.js can statically detect the exports.
3. TypeScript: npm install -D @types/electron-to-chromium

## Facts

- 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

## Runtime test results for electron-to-chromium@1.5.425

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.0 | works | works |

## How to import electron-to-chromium

ES modules:

```js
import electronToChromium from "electron-to-chromium";
```

CommonJS:

```js
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 on every Node.js version we test (18, 20, 22, 24 and 26) and in Bun. 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.0 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

- [electron-to-chromium on npm](https://www.npmjs.com/package/electron-to-chromium)
- [Source repository](https://github.com/Kilian/electron-to-chromium)
- [HTML version](https://canirequire.com/package/electron-to-chromium/)
- [JSON version](https://canirequire.com/package/electron-to-chromium.json)

---

For scripts and AI agents: any package is at https://canirequire.com/package/<name>/index.md (Markdown) or https://canirequire.com/package/<name>.json (JSON); the site index is https://canirequire.com/llms.txt. Fetch the URL directly; no search needed.
