Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eliot-akira/zip-compressor
Encode and decode zip files with CompressionStream
https://github.com/eliot-akira/zip-compressor
Last synced: 19 days ago
JSON representation
Encode and decode zip files with CompressionStream
- Host: GitHub
- URL: https://github.com/eliot-akira/zip-compressor
- Owner: eliot-akira
- License: other
- Created: 2024-03-26T17:50:24.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-04-28T12:22:41.000Z (7 months ago)
- Last Synced: 2024-10-09T23:21:01.810Z (about 1 month ago)
- Language: TypeScript
- Size: 265 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
# Zip Compressor
Encode and decode zip files with [CompressionStream](https://developer.mozilla.org/en-US/docs/Web/API/Compression_Streams_API), well-supported natively in browsers and server-side JavaScript engines
**[Documentation - API](https://eliot-akira.github.io/zip-compressor/api) · [Source](https://eliot-akira.github.io/zip-compressor)**
## Changes
This project is based on a fork of [`@php-wasm/stream-compression`](https://github.com/WordPress/wordpress-playground/tree/trunk/packages/php-wasm/stream-compression).
- [ ] Remove polyfills and dependencies
- [x] `@php-wasm/node-polyfills`
- [x] `@php-wasm/util`
- [ ] Replace polyfill of ReadableStream with standalone async iterator - [API](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream#async_iteration), [browser compatibility](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream/ReadableStream#browser_compatibility)- [x] Refactor as its own library
- [x] Format
- [x] Build
- [x] Test## How it started
### Cloning a subdirectory of a monorepo into its own repository
```sh
git clone --depth 1 --single-branch --branch trunk https://github.com/WordPress/wordpress-playground zip-compressorcd zip-compressor
git remote remove origin
git remote add upstream https://github.com/WordPress/wordpress-playground
git branch -m trunk upstream-trunkgit subtree split --prefix=packages/php-wasm/stream-compression/src -b zip-compressor
git checkout zip-compressorgit checkout -b main
```To keep this fork synced with upstream changes:
```sh
git checkout upstream-trunk
git pullgit subtree split --prefix=packages/php-wasm/stream-compression/src --onto zip-compressor -b zip-compressor
git checkout main
git rebase zip-compressor
```### Reference
- [git-subtree - Merge subtrees together and split repository into subtrees](https://github.com/apenwarr/git-subtree/blob/master/git-subtree.txt)