Gathering detailed insights and metrics for @electron/get
Gathering detailed insights and metrics for @electron/get
Gathering detailed insights and metrics for @electron/get
Gathering detailed insights and metrics for @electron/get
npm install @electron/get
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
356 Stars
409 Commits
108 Forks
22 Watchers
8 Branches
39 Contributors
Updated on Jun 03, 2025
Latest Version
4.0.1
Package Id
@electron/get@4.0.1
Unpacked Size
63.95 kB
Size
18.17 kB
File Count
30
NPM Version
10.9.0
Node Version
22.12.0
Published on
Jun 03, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
7
19
1
Download Electron release artifacts
For full API details, see the API documentation.
1import { download } from '@electron/get'; 2 3// NB: Use this syntax within an async function, Node does not have support for 4// top-level await as of Node 12. 5const zipFilePath = await download('4.0.4');
1import { downloadArtifact } from '@electron/get'; 2 3// NB: Use this syntax within an async function, Node does not have support for 4// top-level await as of Node 12. 5const zipFilePath = await downloadArtifact({ 6 version: '4.0.4', 7 platform: 'darwin', 8 artifactName: 'electron', 9 artifactSuffix: 'symbols', 10 arch: 'x64', 11});
To specify another location to download Electron assets from, the following options are available:
mirrorOptions
Object
mirror
String (optional) - The base URL of the mirror to download from.nightlyMirror
String (optional) - The Electron nightly-specific mirror URL.customDir
String (optional) - The name of the directory to download from, often scoped by version number.customFilename
String (optional) - The name of the asset to download.resolveAssetURL
Function (optional) - A function allowing customization of the url used to download the asset.Anatomy of a download URL, in terms of mirrorOptions
:
https://github.com/electron/electron/releases/download/v4.0.4/electron-v4.0.4-linux-x64.zip
| | | |
------------------------------------------------------- -----------------------------
| |
mirror / nightlyMirror | | customFilename
------
||
customDir
Example:
1import { download } from '@electron/get'; 2 3const zipFilePath = await download('4.0.4', { 4 mirrorOptions: { 5 mirror: 'https://mirror.example.com/electron/', 6 customDir: 'custom', 7 customFilename: 'unofficial-electron-linux.zip' 8 } 9}); 10// Will download from https://mirror.example.com/electron/custom/unofficial-electron-linux.zip 11 12const nightlyZipFilePath = await download('8.0.0-nightly.20190901', { 13 mirrorOptions: { 14 nightlyMirror: 'https://nightly.example.com/', 15 customDir: 'nightlies', 16 customFilename: 'nightly-linux.zip' 17 } 18}); 19// Will download from https://nightly.example.com/nightlies/nightly-linux.zip
customDir
can have the placeholder {{ version }}
, which will be replaced by the version
specified (without the leading v
). For example:
1const zipFilePath = await download('4.0.4', { 2 mirrorOptions: { 3 mirror: 'https://mirror.example.com/electron/', 4 customDir: 'version-{{ version }}', 5 platform: 'linux', 6 arch: 'x64' 7 } 8}); 9// Will download from https://mirror.example.com/electron/version-4.0.4/electron-v4.0.4-linux-x64.zip
Mirror options can also be specified via the following environment variables:
ELECTRON_CUSTOM_DIR
- Specifies the custom directory to download from.ELECTRON_CUSTOM_FILENAME
- Specifies the custom file name to download.ELECTRON_MIRROR
- Specifies the URL of the server to download from if the version is not a nightly version.ELECTRON_NIGHTLY_MIRROR
- Specifies the URL of the server to download from if the version is a nightly version.The version downloaded can be overriden by setting the ELECTRON_CUSTOM_VERSION
environment variable.
Setting this environment variable will override the version passed in to download
or downloadArtifact
.
This module downloads Electron to a known place on your system and caches it so that future requests for that asset can be returned instantly. The cache locations are:
$XDG_CACHE_HOME
or ~/.cache/electron/
~/Library/Caches/electron/
%LOCALAPPDATA%/electron/Cache
or ~/AppData/Local/electron/Cache/
By default, the module uses got
as the
downloader. As a result, you can use the same options
via downloadOptions
.
By default, a progress bar is shown when downloading an artifact for more than 30 seconds. To
disable, set the ELECTRON_GET_NO_PROGRESS
environment variable to any non-empty value, or set
quiet
to true
in downloadOptions
. If you need to monitor progress yourself via the API, set
getProgressCallback
in downloadOptions
, which has the same function signature as got
's
downloadProgress
event callback.
Downstream packages should utilize the initializeProxy
function to add HTTP(S) proxy support. If
the environment variable ELECTRON_GET_USE_PROXY
is set, it is called automatically.
debug
is used to display logs and messages.
Set the DEBUG=@electron/get*
environment variable to log additional
debug information from this module.
No vulnerabilities found.
Reason
all changesets reviewed
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
all dependencies are pinned
Details
Reason
license file detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
6 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 6
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More