1.1.0 • Published 2 years ago

asar-trim v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Installation

npm i asar-trim -g

Usage

$ asar-trim <path to resources containing app.asar>

What is it?

Many popular Electron applications today sure like to include their dev dependencies, raw frontend assets, and even source files in their final package which inflates the already-large size to greater lengths.

This tool attempts to delete these files and repack the asar file to produce a much slimmer archive.

What does it do?

There are a few things asar-trim will do when it does its optimization:

  • Deletes various files that have no use in the application
    • You can see what is deleted here
  • Minifies .json files
  • Minifies and removes unneeded properties from package.json files

Commands

<default>

Trims the app.asar file at the location denoted by the path provided.

Usage

$ asar-trim .

Options

OptionDefault ValueDescription
-b, --backupfalseCreate a backup of the original app.asar file
-k, --keep-extractedfalseWhether to keep the extracted app.asar contents after optimizing instead of deleting them
-h, --hint-filePath to your app's generated load order hint file, see https://github.com/atom/atom/issues/10163

Planned Features

  • Trimming app.asar.unpacked directory
  • Improved backing up
  • Additional options to customize what files will be deleted
1.1.0

2 years ago

1.0.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago