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

@electron/get

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@electron/get

Utility for downloading artifacts from different versions of Electron

  • 3.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
801K
decreased by-14.76%
Maintainers
1
Weekly downloads
 
Created

What is @electron/get?

@electron/get is an npm package designed to facilitate the downloading of Electron binaries. It provides a simple API to fetch Electron versions, which can be useful for setting up Electron-based projects or managing different versions of Electron.

What are @electron/get's main functionalities?

Download a specific version of Electron

This feature allows you to download a specific version of Electron. The code sample demonstrates how to download Electron version 13.1.7 and log the path where it was downloaded.

const { download } = require('@electron/get');

(async () => {
  const zipPath = await download('v13.1.7');
  console.log(`Downloaded Electron v13.1.7 to ${zipPath}`);
})();

Specify a mirror for downloading

This feature allows you to specify a mirror URL for downloading Electron binaries. The code sample shows how to download Electron version 13.1.7 from a custom mirror.

const { download } = require('@electron/get');

(async () => {
  const zipPath = await download('v13.1.7', {
    mirrorOptions: {
      mirror: 'https://mirror.example.com/electron/'
    }
  });
  console.log(`Downloaded Electron v13.1.7 from mirror to ${zipPath}`);
})();

Get the URL for a specific Electron version

This feature allows you to get the download URL for a specific version of Electron without actually downloading it. The code sample demonstrates how to get the URL for Electron version 13.1.7.

const { getDownloadUrl } = require('@electron/get');

(async () => {
  const url = await getDownloadUrl('v13.1.7');
  console.log(`Download URL for Electron v13.1.7: ${url}`);
})();

Other packages similar to @electron/get

Keywords

FAQs

Package last updated on 15 Jul 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