eliot-akira / zip-compressor

Encode and decode zip files with CompressionStream

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Other


Languages

Language:TypeScript 95.1%Language:JavaScript 4.1%Language:Shell 0.7%