Skip to content

@catlabtech/webcvt-archive-zip ​

ZIP and TAR archive parsing and creation for webcvt. Pure TypeScript, no native addons.

Installation ​

bash
npm i @catlabtech/webcvt-archive-zip

Supported formats ​

FormatParseCreate
ZIP (Deflate, Stored)yesyes
TAR (ustar)yesyes
TAR.GZ / TGZyesyes

BZ2 and XZ decompression are not supported (throws ArchiveBz2NotSupportedError / ArchiveXzNotSupportedError).

API ​

Detailed API reference coming in v0.2. See the source code for now.

Size limits ​

LimitValue
Max archive input200 MiB
Max per-entry uncompressed256 MiB
Max total uncompressed512 MiB

These limits protect against zip-bomb attacks.

MIT licensed