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

You Might Also Like
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
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