# sindresorhus/electron-util

Useful utilities for Electron apps and modules

Repository: https://github.com/sindresorhus/electron-util
Canonical: https://ross.abutalabs.com/products/electron-util
Language: TypeScript
License: MIT
License Family: permissive
Topics: electron, electron-module, nodejs, npm-package
Last push: 2025-09-09T05:56:08+00:00

## Health v2 (maintenance only)
Score: 44/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 41, release rhythm 15, longevity 100
- inputs: {"age_days": 3389, "days_push": 358, "days_rel": 358, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1334, forks 65 (observed 2026-08-28T04:04:24.886717+00:00)

## What it is
A collection of useful utility functions for Electron apps and modules, usable in both the main and renderer processes. It provides environment detection (platform, process type, dev mode) and helpers like ASAR path fixing.

## Use cases
- detect electron environment in node scripts
- check if app runs on macos or in main process
- fix paths for asar unpacked binaries
- detect dev mode in electron main process
- share utilities between electron main and renderer processes

## When to choose
- you're building an Electron app and need common environment checks and path helpers
- you want a small, well-maintained TypeScript utility library for Electron

## When to avoid
- you're not using Electron
- you need Electron 36 or older (requires Electron 37+)

## Facets
- artifact type: library
- maturity: active
- function: developer-tools
- domain: developer-tools, desktop-applications, cross-platform
- platform: cross-platform
- tags: electron, utilities, npm-package, typescript, asar, environment-detection, nodejs, desktop

## Member repositories
- sindresorhus/electron-util (main) score 44

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:24.886717+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:44:34.743350+00:00, confidence not recorded.
  - readme: https://github.com/sindresorhus/electron-util (fetched 2026-08-28T04:04:24.886717+00:00, sha be54cdfe39a3)
  - registry_npm: https://registry.npmjs.org/electron-util (fetched 2026-08-29T12:04:10.428881+00:00, sha 835dfd06b967)
- Data as of 2026-08-30T08:39:29.467469+00:00.
