An open API service indexing awesome lists of open source software.

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.

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.)