@hyrious/install-electron
v0.1.1
Published
Install electron from local cache
Readme
@hyrious/install-electron
Requires Node.js ≥ 20.1.0 to use fs.readdir({ recursive: true }).
Usage
Install electron from the cache, or fallback to the latest
npx @hyrious/install-electronInstall electron within a version range, prefer from cache
npx @hyrious/install-electron ^30[!NOTE] If the range is a tag, like
latest,30-x-y. They are pointing to some specific version, which often changes and this package can't help. You should not use them to install packages. However, ranges like30.xare fine.
Options
> npx @hyrious/install-electron --dry-run
30.0.9, not cached
> npx @hyrious/install-electron --dry-run --json
{ "version": "30.0.9", "cached": false }How It Works
@electron/get downloads electron to a known place.
@hyrious/install-electron examines this place to find a proper version that you have cached.
License
MIT @ hyrious
