GitShow/sindresorhus/electron-util
sindresorhus

electron-util

Useful utilities for Electron apps and modules

by sindresorhus
electronelectron-modulenodejsnpm-package
Star on GitHubForknpm

TypeScript

1.3k stars65 forks22 contributorsQuiet · 9mo agoSince 2017v1.0.0MIT

Meet the team

See all 22 on GitHub →
sindresorhus
sindresorhus100 contributions
mquevill
mquevill3 contributions
cvx
cvx2 contributions
codebytere
codebytere2 contributions
kaatt
kaatt1 contribution
acheronfail
acheronfail1 contribution
ntamas
ntamas1 contribution
MarshallOfSound
MarshallOfSound1 contribution

Languages

View on GitHub →
TypeScript87.9%
JavaScript9.5%
HTML2.6%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
steveoh
enforceMacOSAppLocation causing failure on windowsClosedIssue

After upgrading to electron 39 windows users are seeing I'm assuming this is from electron utils enforceMacOSAppLocation and https://github.com/sindresorhus/electron-util/blob/main/source/main/enforce-macos-app-location.ts#L21 Is the first if statement that it's on mac not catching and exiting early? if (isDev ?? !is.macos) { return; } I've added and verified it's still win32 on windows so I don't know how isMac is not false. Do I need to be doing something differently or does the utility need to update?

steveoh · 4mo ago
LyingDoc
Usage issuesClosedIssue

I use latest typescript "devDependencies": { "@types/node": "^25.2.3", "@types/webpack": "^5.28.5", "@types/webpack-node-externals": "^3.0.4", "copy-webpack-plugin": "^13.0.1", "electron-util": "^1.0.0", "esno": "^4.8.0", "prettier": "3.8.1", "ts-loader": "^9.5.4", "ts-node": "^10.9.2", "typescript": "^5.9.3", "webpack": "^5.105.2", "webpack-cli": "^6.0.1", "webpack-node-externals": "^3.0.0" In the above environment, a compilation error occurred. The final solution was to use the webpack-node-externals plugin: . This is the correct way to solve the problem. Simply copy this code into . Please fix this.

LyingDoc · 4mo ago
lacymorrow
Error in `disableZoom()`: webContents.setLayoutZoomLevelLimits is not a functionClosedIssue

Removed in Electron 9.x: webFrame.setLayoutZoomLevelLimits() https://www.electronjs.org/docs/breaking-changes#removed-webframesetlayoutzoomlevellimits

lacymorrow · 9mo ago
Structured data for AI agents

Repository: sindresorhus/electron-util. Description: Useful utilities for Electron apps and modules Stars: 1337, Forks: 65. Primary language: TypeScript. Languages: TypeScript (87.9%), JavaScript (9.5%), HTML (2.6%). License: MIT. Topics: electron, electron-module, nodejs, npm-package. Latest release: v1.0.0 (9mo ago). Open PRs: 0, open issues: 0. Last activity: 9mo ago. Community health: 71%. Top contributors: sindresorhus, mquevill, cvx, codebytere, kaatt, acheronfail, ntamas, MarshallOfSound, Richienb, coolhome and others.

·@ofershap

Replace github.com with gitshow.dev