Encode and decode zip files with CompressionStream, well-supported natively in browsers and server-side JavaScript engines
This project is based on a fork of @php-wasm/stream-compression
.
Remove polyfills and dependencies
@php-wasm/node-polyfills
@php-wasm/util
Refactor as its own library
git clone --depth 1 --single-branch --branch trunk https://github.com/WordPress/wordpress-playground zip-compressor
cd zip-compressor
git remote remove origin
git remote add upstream https://github.com/WordPress/wordpress-playground
git branch -m trunk upstream-trunk
git subtree split --prefix=packages/php-wasm/stream-compression/src -b zip-compressor
git checkout zip-compressor
git checkout -b main
To keep this fork synced with upstream changes:
git checkout upstream-trunk
git pull
git subtree split --prefix=packages/php-wasm/stream-compression/src --onto zip-compressor -b zip-compressor
git checkout main
git rebase zip-compressor
Generated using TypeDoc