Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
electron-global
Advanced tools
A tool for building lighweight Electron apps using a global Electron instance. Forget about 100MB for a Hello World app in Electron!
electron-global
creates a custom Electron distributable with a small app launcher which checks the app's package.json
and downloads corresponding major
version and the newest in case of minor
and patch
. The Electron versions are being saved to:
~/.electron-global/x
%HOMEPATH%/.electron-global/x
Where x
is the major version of Electron (e.g. 6).
Then the distributable can be used with electron-builder
to build the app installers.
The electron-builder
package is also required to successfully build an app.
$ npm install --save-dev electron-global electron-builder
You need to create electron-builder.json
file in your project directory, configure it and specify electronDist
directory to where the electron-global
generates the output (default is ./electron-global
). Example:
{
...
"electronDist": "./electron-global"
...
}
Then you can run the following command (example for macOS):
$ electron-global -m && electron-builder -m
Usage: electron-global [options]
Options:
-m, --mac Create Electron dist for macOS.
-l, --linux Create Electron dist for Linux.
-w, --windows Create Electron dist for Windows.
-o, --output <path> Output path of the created Electron runtime launcher. Defaults to `./dist/runtime`.
--projectDir, --project The path to project directory. Defaults to current working directory.
-h, --help output usage information
FAQs
Tool for building lightweight Electron apps
We found that electron-global demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.