Skip to content

eliot-akira/zip-compressor

Repository files navigation

Zip Compressor

Encode and decode zip files with CompressionStream, well-supported natively in browsers and server-side JavaScript engines

Documentation - API · Source

Changes

This project is based on a fork of @php-wasm/stream-compression.

  • Remove polyfills and dependencies

    • @php-wasm/node-polyfills
    • @php-wasm/util
    • Replace polyfill of ReadableStream with standalone async iterator - API, browser compatibility
  • Refactor as its own library

    • Format
    • Build
    • Test

How it started

Cloning a subdirectory of a monorepo into its own repository

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

Reference

About

Encode and decode zip files with CompressionStream

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published