This package, is-electron, detects whether a JavaScript environment is running in Electron. It is useful for apps that need to enable or disable Electron-specific behavior based on the runtime.
Project status
- The GitHub update history shows updates through v2.2.2 (2023-02-21), with the latest known upstream push on that date, indicating the source is currently quiet or in maintenance mode rather than actively maintained.
- Apparent update cadence is long and infrequent, with gaps of years between updates (v2.2.1 in 2021-11, v2.2.0 in 2018-10), and no updates since 2023-02-21 relative to today (2026-08-12).
AI summary generated
Recent updates
v2.2.2
v2.2.2 is a small patch release focused on TypeScript typing adjustments for the is-electron package. The code diff also includes a minor metadata change in package.json (test coverage configuration formatting) alongside the version bump.
v2.2.1
v2.2.1 makes small maintenance changes, including a fix to the TypeScript declaration file and a minor typo in the runtime source comments. The code diff is very small (+16/-3 lines) and does not indicate any functional runtime behavior change.
v2.2.0
Release v2.2.0 adds TypeScript type definitions for the is-electron package. The code changes are limited to introducing a new index.d.ts file and updating package.json so the types are included in the published package.
Featuresv2.1.0
Release v2.1.0 updates the Electron environment detection logic. The change improves detection when the renderer has limited access (for example, when nodeIntegration is disabled) by adding additional heuristics beyond process and window.process checks.
v2.0.0
Release v2.0.0 updates the package identity to the unscoped `is-electron` name and bumps the version accordingly. The only code change in `index.js` is cosmetic (comment/formatting), with no apparent logic changes to `isElectron()`. Most of the effective change for developers is how the module is imported and installed.
v0.2.0
v0.2.0 changes the package's public API from exporting a boolean value to exporting the detection function itself. Consumers now need to invoke the exported function to get the result.
Breakingv0.1.0
This is the initial release (v0.1.0) and establishes the project for the first time. There are no release notes describing specific features, fixes, or upgrade considerations.