Skip to content
JS
Package

is-electron

Detect if running in Electron.

v2.2.2, 21 Feb 2023MITCommonJSTypes: Bundled
$ npm install is-electron

Key numbers

As of 25 Sept 2026
Weekly downloads
7.3m
+160% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
3 years ago
v2.2.2
GitHub stars
103
14 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
05m10m15mSept 2025Mar 2026Sept 2026High 10.9m (25 Aug 2026)Low 2m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

7,334,493 downloads last week, 34,216,826 in the last month. The 12-month change of +160% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
05 in total
Latest version
2.2.2, 21 Feb 20233 years ago
First published
26 Apr 2016
Last push to GitHub
21 Feb 20231,311 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
149

Major versions

  1. v2 first release 2.0.0, 16 Jun 2016

Recent releases

VersionPublished
2.2.221 Feb 2023
2.2.121 Nov 2021
2.2.031 Oct 2018
2.1.02 Aug 2017
2.0.016 Jun 2016
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
3.2 kB
Dependencies (0)
None
npm install is-electron
  • jsDelivrhttps://cdn.jsdelivr.net/npm/is-electron@2.2.2/
  • unpkghttps://unpkg.com/is-electron@2.2.2/
  • esm.shhttps://esm.sh/is-electron@2.2.2
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.