Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electron-updater

Package Overview
Dependencies
Maintainers
2
Versions
291
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-updater

Cross platform updater for electron applications

  • 6.3.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
223K
decreased by-11.17%
Maintainers
2
Weekly downloads
 
Created

What is electron-updater?

The electron-updater npm package provides a way to automatically update Electron applications. It integrates with the Electron framework to enable seamless updates of desktop applications built with Electron. The package allows for easy distribution of updates by checking for new versions and downloading them in the background.

What are electron-updater's main functionalities?

Auto Update

This feature allows the application to automatically check for updates and notify the user when an update is available. It can also download and install the updates in the background.

const { autoUpdater } = require('electron-updater');

autoUpdater.checkForUpdatesAndNotify();

Update Events

This feature allows developers to listen for specific events during the update process, such as when an update is available or when it has been downloaded. Developers can then take appropriate actions, like prompting the user or automatically restarting the application.

const { autoUpdater } = require('electron-updater');

autoUpdater.on('update-available', (info) => {
  console.log('Update available.');
});
autoUpdater.on('update-downloaded', (info) => {
  console.log('Update downloaded; will install in 5 seconds');
  setTimeout(() => {
    autoUpdater.quitAndInstall();
  }, 5000);
});

Manual Update Checks

This feature allows developers to manually trigger an update check instead of relying on automatic checks. This can be useful for giving users the option to check for updates on demand.

const { autoUpdater } = require('electron-updater');

autoUpdater.checkForUpdates();

Other packages similar to electron-updater

FAQs

Package last updated on 02 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc