https://github.com/stainless-api/repack-package
Repack NPM tgz files for better compression.
https://github.com/stainless-api/repack-package
Last synced: 10 months ago
JSON representation
Repack NPM tgz files for better compression.
- Host: GitHub
- URL: https://github.com/stainless-api/repack-package
- Owner: stainless-api
- License: apache-2.0
- Created: 2024-12-16T19:28:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-16T22:23:15.000Z (over 1 year ago)
- Last Synced: 2025-08-10T00:36:56.203Z (10 months ago)
- Language: JavaScript
- Size: 33.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# repack-package
Optimize NPM package tarballs by reordering their files and compressing them with [Zopfli](https://github.com/google/zopfli)
## Usage
```bash
repack input.tgz output.tgz
```
## Features
- Optimized ordering for dual CJS/ESM packages (up to 25% size savings)
- Keeps original if no size reduction
- Shows progress with timing
- Skips unnecessary files (`.git`, `.DS_Store`, etc.)