Useful utilities for Electron apps and modules. You can use this module directly in both the main and renderer process. This package is not compatible with Electron v12 and later. Access the Electron APIs in both the main and renderer process without having to care about which one you're in. The app API is usually only available in the main process. Accepts an object with the keys as either macos, windows, linux, or default, and picks the appropriate key depending on the current platform. If no platform key is matched, the default key is used if it exists. If the value is a function, it will be executed, and the returned value will be used. On macOS, for security reasons, if an app is launched outside the Applications folder, it will run in a read-only disk image, which could cause subtle problems for your app. Use this method to ensure the app lives in the Applications folder.

Features

  • Requires Electron 5 or later
  • The app API is usually only available in the main process
  • Run some JavaScript in the active or given window
  • Returns a promise for the result of the executed code or a rejected promise if the result is a rejected promise
  • The app is a Windows Store AppX build
  • The app is an Mac App Store build

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow electron-util

electron-util Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of electron-util!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

JavaScript

Related Categories

JavaScript Software Development Software

Registered

2022-10-03